fix(routing/dht) match the routing interface
the channel's "spin" is specified in the interface now =)
Brian Tiger Chow committed
Sep 17, 2014 at 13:51 UTC
56e6c453a2755e2558b2788be9f39f28703ca211
1 file changed
+1
-1
routing/dht/routing.go
+1
-1
@@ -123,7 +123,7 @@ func (dht *IpfsDHT) Provide(key u.Key) error {
123
}
124
125
// FindProvidersAsync runs FindProviders and sends back results over a channel
126
-func (dht *IpfsDHT) FindProvidersAsync(key u.Key, count int, timeout time.Duration) chan *peer.Peer {
126
+func (dht *IpfsDHT) FindProvidersAsync(key u.Key, count int, timeout time.Duration) <-chan *peer.Peer {
127
ctx, _ := context.WithTimeout(context.TODO(), timeout)
128
129
peerOut := make(chan *peer.Peer, count)