Skip to content

Commit

Permalink
fix request id in discovery findSelf
Browse files Browse the repository at this point in the history
  • Loading branch information
rongyi authored May 7, 2020
1 parent f710def commit f1b2b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2pserver/protocols/discovery/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (self *Discovery) findSelf() {
if curPair.ID.IsPseudoPeerId() {
msg = msgpack.NewAddrReq()
} else {
msg = msgpack.NewFindNodeReq(curPair.ID)
msg = msgpack.NewFindNodeReq(self.id)
}
self.net.SendTo(curPair.ID, msg)
}
Expand Down

0 comments on commit f1b2b58

Please sign in to comment.