-
Notifications
You must be signed in to change notification settings - Fork 654
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #6826 We have circular depedencies between PeerManager and Client, which we break via `dyn PeerManagerAdapter`. As this is a real cycle, we close it at runtime by calling `set_recipient`. But today nothing prevents client from sending message to network before that, and indeed that happens if we are unlucky with timing. This commit fixes the issue by making `PeerManagerAdapter` APIs block until the loop is closed.
- Loading branch information
Showing
3 changed files
with
11 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters