1
0
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:
Jeromy
2015-01-09 19:04:13 +00:00
parent 0794d5b46a
commit 566a86f5d4
5 changed files with 47 additions and 24 deletions

View File

@ -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{}