mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-24 20:07:45 +08:00
ping: cleanup error message
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
parent
3c9be59c95
commit
6e2858e8b6
@ -75,7 +75,7 @@ trip latency information.
|
||||
|
||||
numPings, _ := req.Options[pingCountOptionName].(int)
|
||||
if numPings <= 0 {
|
||||
return fmt.Errorf("error: ping count must be greater than 0, was %d", numPings)
|
||||
return fmt.Errorf("ping count must be greater than 0, was %d", numPings)
|
||||
}
|
||||
|
||||
if len(n.Peerstore.Addrs(pid)) == 0 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user