Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
refactor: use original peerids
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Oct 12, 2021
1 parent fc2d7fb commit 7ddcab4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ func (s *PubSubSubscription) Next() (*Message, error) {

// fields are wrapped in multibase when sent over HTTP RPC
// and need to be decoded (https://github.com/ipfs/go-ipfs/pull/8183)
_, bfrom, err := mbase.Decode(r.From)
if err != nil {
return nil, err
}
from, err := peer.IDFromBytes(bfrom)
from, err := peer.Decode(r.From)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7ddcab4

Please sign in to comment.