Commit 5577b338 authored by Jeromy's avatar Jeromy

rename for clarity

parent 88853d99
...@@ -29,7 +29,7 @@ func (bs *bitswap) startWorkers(px process.Process, ctx context.Context) { ...@@ -29,7 +29,7 @@ func (bs *bitswap) startWorkers(px process.Process, ctx context.Context) {
// file transfers // file transfers
for i := 0; i < provideWorkers; i++ { for i := 0; i < provideWorkers; i++ {
px.Go(func(px process.Process) { px.Go(func(px process.Process) {
bs.blockReceiveWorker(ctx) bs.provideWorker(ctx)
}) })
} }
} }
...@@ -55,7 +55,7 @@ func (bs *bitswap) taskWorker(ctx context.Context) { ...@@ -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 { for {
select { select {
case blk, ok := <-bs.newBlocks: case blk, ok := <-bs.newBlocks:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment