Commit 56e6c453 authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix(routing/dht) match the routing interface

the channel's "spin" is specified in the interface now =)
parent 29322a24
......@@ -123,7 +123,7 @@ func (dht *IpfsDHT) Provide(key u.Key) error {
}
// FindProvidersAsync runs FindProviders and sends back results over a channel
func (dht *IpfsDHT) FindProvidersAsync(key u.Key, count int, timeout time.Duration) chan *peer.Peer {
func (dht *IpfsDHT) FindProvidersAsync(key u.Key, count int, timeout time.Duration) <-chan *peer.Peer {
ctx, _ := context.WithTimeout(context.TODO(), timeout)
peerOut := make(chan *peer.Peer, count)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment