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) {
// 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:
......
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