ipfs / go-bitswap

The golang implementation of the bitswap protocol
MIT License
216 stars 112 forks source link

fix: reduce receive contention #536

Closed Stebalien closed 2 years ago

Stebalien commented 2 years ago

This means we need to frequently re-take this lock, but it also means we don't hold it while calling other functions that might block (e.g., while pushing jobs).

whyrusleeping commented 2 years ago

This is working well for me, except now im hitting other issues that I think the lock contention was holding back