1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-12 16:11:24 +08:00

peer.Peer is now an interface

![](http://m.memegen.com/77n7dk.jpg)
This commit is contained in:
Juan Batiz-Benet
2014-10-20 03:26:44 -07:00
parent b1d11ccfcb
commit 9ca87fbb93
65 changed files with 538 additions and 459 deletions

View File

@ -10,7 +10,7 @@ import (
// IpfsRouting is the routing module interface
// It is implemented by things like DHTs, etc.
type IpfsRouting interface {
FindProvidersAsync(context.Context, u.Key, int) <-chan *peer.Peer
FindProvidersAsync(context.Context, u.Key, int) <-chan peer.Peer
// Basic Put/Get
@ -28,5 +28,5 @@ type IpfsRouting interface {
// Find specific Peer
// FindPeer searches for a peer with given ID.
FindPeer(context.Context, peer.ID) (*peer.Peer, error)
FindPeer(context.Context, peer.ID) (peer.Peer, error)
}