fix: missed passing protocols to addPeer (#682)

This commit is contained in:
harsh jain 2023-08-25 14:42:10 +04:00 committed by GitHub
parent 36464acacb
commit bfbc50eb22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -260,7 +260,7 @@ func (pm *PeerManager) AddPeer(address ma.Multiaddr, origin wps.Origin, protocol
}
//Add to the peer-store
err = pm.addPeer(info.ID, info.Addrs, origin)
err = pm.addPeer(info.ID, info.Addrs, origin, protocols...)
if err != nil {
return "", err
}