Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bitswap/client/msgq): prevent duplicate requests
Previously, in-progress requests could be re-requested again during periodic rebroadcast. The queue requests, and while awaiting response, the rebroadcast event happens. Rebroadcast event changes previosly sent WANTs to pending and sends them again in a new message. The solution here is to ensure WANT was in sent status for long enough, before bringing it back to pending. This utilizes existing `sendAt` map which tracks when every CID was sent.
- Loading branch information