From 56e6c453a2755e2558b2788be9f39f28703ca211 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow <brian.holderchow@gmail.com> Date: Wed, 17 Sep 2014 13:51:52 -0700 Subject: [PATCH] fix(routing/dht) match the routing interface the channel's "spin" is specified in the interface now =) --- routing/dht/routing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing/dht/routing.go b/routing/dht/routing.go index bee640e8..06fe39bc 100644 --- a/routing/dht/routing.go +++ b/routing/dht/routing.go @@ -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) -- GitLab