提交 5924f4a3 作者: Jeromy

rename for clarity

上级 d7eb57f4
......@@ -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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论