Skip to content

Commit

Permalink
bitswap/network: refactor connectEventManager more simply in in bsnet
Browse files Browse the repository at this point in the history
I think this is fine because libp2p's .Connect call does not return before the .Connected callback has returned.

This new code also have similar dedup logic and state transitions.

Fixes #432
  • Loading branch information
Jorropo committed Aug 17, 2023
1 parent b96767c commit 94515c2
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 412 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ The following emojis are used to highlight certain changes:

### Fixed

- Address a Bitswap findpeers / connect race condition that can prevent peer communication ([#432](https://github.com/ipfs/boxo/issues/432)).

### Security

## [v0.11.0]
Expand Down
218 changes: 0 additions & 218 deletions bitswap/network/connecteventmanager.go

This file was deleted.

Loading

0 comments on commit 94515c2

Please sign in to comment.