1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-11 23:46:39 +08:00

refac(routing) replace timeout -> ctx

@jbenet oh hai there!
This commit is contained in:
Brian Tiger Chow
2014-09-18 19:15:15 -07:00
parent 81da645ed6
commit 0bd8f2092b
3 changed files with 6 additions and 6 deletions

View File

@ -3,6 +3,8 @@ package routing
import (
"time"
context "github.com/jbenet/go-ipfs/Godeps/_workspace/src/code.google.com/p/go.net/context"
peer "github.com/jbenet/go-ipfs/peer"
u "github.com/jbenet/go-ipfs/util"
)
@ -10,7 +12,7 @@ import (
// IpfsRouting is the routing module interface
// It is implemented by things like DHTs, etc.
type IpfsRouting interface {
FindProvidersAsync(u.Key, int, time.Duration) <-chan *peer.Peer
FindProvidersAsync(context.Context, u.Key, int) <-chan *peer.Peer
// Basic Put/Get