mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-10 09:52:20 +08:00
Address PR comments and add in more user feedback
This commit is contained in:
@ -2,6 +2,7 @@ package mockrouting
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"time"
|
||||
|
||||
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
|
||||
ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
|
||||
@ -79,8 +80,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
|
||||
func (c *client) Ping(ctx context.Context, p peer.ID) (time.Duration, error) {
|
||||
return 0, nil
|
||||
}
|
||||
|
||||
var _ routing.IpfsRouting = &client{}
|
||||
|
Reference in New Issue
Block a user