mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-11 15:15:58 +08:00
make ping its own protocol
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -3,7 +3,6 @@ package routing
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"time"
|
||||
|
||||
context "github.com/ipfs/go-ipfs/Godeps/_workspace/src/golang.org/x/net/context"
|
||||
key "github.com/ipfs/go-ipfs/blocks/key"
|
||||
@ -38,9 +37,6 @@ type IpfsRouting interface {
|
||||
// with relevant addresses.
|
||||
FindPeer(context.Context, peer.ID) (peer.PeerInfo, error)
|
||||
|
||||
// Ping a peer, log the time it took
|
||||
Ping(context.Context, peer.ID) (time.Duration, error)
|
||||
|
||||
// Bootstrap allows callers to hint to the routing system to get into a
|
||||
// Boostrapped state
|
||||
Bootstrap(context.Context) error
|
||||
|
Reference in New Issue
Block a user