defradb
defradb copied to clipboard
fix(i): Make peer connections deterministic
Relevant issue(s)
Resolves #2847 Resolves #1902
Description
This PR fixes an issue where peer connections were not deterministic within the test framework.
There's also a few other areas that were cleaned up:
- Bootstrap has been replaced with https://github.com/ipfs/boxo/blob/main/bootstrap/bootstrap.go
- Host setup logic was moved to
net/host.go
- Persistent peer store was replaced with in memory only version
- Context reuse within the
net
package has been refactored - Removed unused peer event
Tasks
- [x] I made sure the code is well commented, particularly hard-to-understand areas.
- [x] I made sure the repository-held documentation is changed accordingly.
- [x] I made sure the pull request title adheres to the conventional commit style (the subset used in the project can be found in tools/configs/chglog/config.yml).
- [x] I made sure to discuss its limitations such as threats to validity, vulnerability to mistake and misuse, robustness to invalidation of assumptions, resource requirements, ...
How has this been tested?
make test
Specify the platform(s) on which this was tested:
- MacOS