Commit 6ba53523 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Jeromy

ping WIP

License: MIT
Signed-off-by: default avatarBrian Tiger Chow <brian@perfmode.com>

Conflicts:
	core/commands/root.go

begin ping command, WIP

finish initial ping implementation
parent 74e55ed6
......@@ -79,4 +79,8 @@ func (c *client) Provide(_ context.Context, key u.Key) error {
return c.server.Announce(info, key)
}
func (c *client) Ping(ctx context.Context, p peer.ID) error {
return nil
}
var _ routing.IpfsRouting = &client{}
......@@ -36,4 +36,7 @@ type IpfsRouting interface {
// FindPeer searches for a peer with given ID, returns a peer.PeerInfo
// with relevant addresses.
FindPeer(context.Context, peer.ID) (peer.PeerInfo, error)
// Ping a peer, log the time it took
Ping(context.Context, peer.ID) error
}
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