@cryptotaxi247 / kubo / commits / 5bd3b178b

style(bitswap) name -> loop

eh? License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Nov 20, 2014 at 18:27 UTC 5bd3b178b665600db57019acf5a610073ed34435
1 file changed +2 -2
exchange/bitswap/bitswap.go
+2 -2
@@ -44,7 +44,7 @@ func New(ctx context.Context, p peer.Peer, network bsnet.BitSwapNetwork, routing
44 batchRequests: make(chan []u.Key, 32),
45 }
46 network.SetDelegate(bs)
47 - go bs.run(ctx)
47 + go bs.loop(ctx)
48
49 return bs
50 }
@@ -163,7 +163,7 @@ func (bs *bitswap) sendWantListTo(ctx context.Context, peers <-chan peer.Peer) e
163 }
164
165 // TODO ensure only one active request per key
166 -func (bs *bitswap) run(ctx context.Context) {
166 +func (bs *bitswap) loop(ctx context.Context) {
167
168 // Every so often, we should resend out our current want list
169 rebroadcastTime := time.Second * 5