rename for clarity
Jeromy committed
Feb 19, 2015 at 13:41 UTC
5924f4a3db7c26644d3d5495e69ee2cc0e31ecd6
1 file changed
+2
-2
exchange/bitswap/workers.go
+2
-2
@@ -29,7 +29,7 @@ func (bs *bitswap) startWorkers(px process.Process, ctx context.Context) {
29
// file transfers
30
for i := 0; i < provideWorkers; i++ {
31
px.Go(func(px process.Process) {
32
- bs.blockReceiveWorker(ctx)
32
+ bs.provideWorker(ctx)
33
})
34
}
35
}
@@ -55,7 +55,7 @@ func (bs *bitswap) taskWorker(ctx context.Context) {
55
}
56
}
57
58
-func (bs *bitswap) blockReceiveWorker(ctx context.Context) {
58
+func (bs *bitswap) provideWorker(ctx context.Context) {
59
for {
60
select {
61
case blk, ok := <-bs.newBlocks: