Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Rebased
Browse files Browse the repository at this point in the history
Signed-off-by: Antonio Navarro Perez <[email protected]>
  • Loading branch information
ajnavarro committed Nov 22, 2022
1 parent 2f51068 commit 420a9ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (d *Duration) UnmarshalJSON(b []byte) error {
if err != nil {
return err
}
d.Duration = time.Duration(dur) * time.Millisecond
d.Duration = time.Duration(dur)
return nil
}

Expand Down
9 changes: 0 additions & 9 deletions types_bitswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,6 @@ type BitswapWriteProviderRequestPayload struct {
Addrs []Multiaddr
}

func (p *BitswapWriteProviderRequest) MarshalJSON() ([]byte, error) {
err := p.Verify()
if err != nil {
return nil, err
}

return json.Marshal(p)
}

type tmpBWPR BitswapWriteProviderRequest

func (p *BitswapWriteProviderRequest) UnmarshalJSON(b []byte) error {
Expand Down

0 comments on commit 420a9ad

Please sign in to comment.