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

Commit

Permalink
Use IDFromBytes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnavarro committed Jul 7, 2022
1 parent b05714b commit 9153e54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/putipns.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

func (fp *Client) PutIPNS(ctx context.Context, id []byte, record []byte) error {
_, err := peer.IDFromString(string(id))
_, err := peer.IDFromBytes(id)
if err != nil {
return errors.Wrap(err, "invalid peer ID")
}
Expand All @@ -26,7 +26,7 @@ type PutIPNSAsyncResult struct {
}

func (fp *Client) PutIPNSAsync(ctx context.Context, id []byte, record []byte) (<-chan PutIPNSAsyncResult, error) {
_, err := peer.IDFromString(string(id))
_, err := peer.IDFromBytes(id)
if err != nil {
return nil, errors.Wrap(err, "invalid peer ID")
}
Expand Down

0 comments on commit 9153e54

Please sign in to comment.