Commit b3e9ba8b authored by acud's avatar acud Committed by GitHub

instrument retrieve error (#343)

parent 63939b18
......@@ -143,7 +143,7 @@ func (s *Service) closestPeer(addr swarm.Address, skipPeers []swarm.Address) (sw
}
dcmp, err := swarm.DistanceCmp(addr.Bytes(), closest.Bytes(), peer.Bytes())
if err != nil {
return false, false, err
return false, false, fmt.Errorf("distance compare error. addr %s closest %s peer %s: %w", addr.String(), closest.String(), peer.String(), err)
}
switch dcmp {
case 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment