From 5924f4a3db7c26644d3d5495e69ee2cc0e31ecd6 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Thu, 19 Feb 2015 13:41:18 -0800 Subject: [PATCH] rename for clarity --- exchange/bitswap/workers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exchange/bitswap/workers.go b/exchange/bitswap/workers.go index f2f348305..0c6e45604 100644 --- a/exchange/bitswap/workers.go +++ b/exchange/bitswap/workers.go @@ -29,7 +29,7 @@ func (bs *bitswap) startWorkers(px process.Process, ctx context.Context) { // file transfers for i := 0; i < provideWorkers; i++ { px.Go(func(px process.Process) { - bs.blockReceiveWorker(ctx) + bs.provideWorker(ctx) }) } } @@ -55,7 +55,7 @@ func (bs *bitswap) taskWorker(ctx context.Context) { } } -func (bs *bitswap) blockReceiveWorker(ctx context.Context) { +func (bs *bitswap) provideWorker(ctx context.Context) { for { select { case blk, ok := <-bs.newBlocks: