1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-26 23:53:19 +08:00

rename for clarity

This commit is contained in:
Jeromy
2015-02-19 13:41:18 -08:00
parent d7eb57f48f
commit 5924f4a3db

View File

@ -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: