1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-07-01 02:30:39 +08:00

fix(routing/dht) match the routing interface

the channel's "spin" is specified in the interface now =)
This commit is contained in:
Brian Tiger Chow
2014-09-17 13:51:52 -07:00
parent 29322a24da
commit 56e6c453a2

View File

@ -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)