-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Require
chain::Listen
impls in block sync be Send + Sync
Users who want to use `lightning-block-sync`'s `init` module would be reasonable in wanting to use it in a multithreaded environment, however because it takes a list of listeners as `dyn chain::Listen` without any `Send` or `Sync` bound they fail in doing so. Here we add a `Send + Sync` bound, requiring any listeners be both. This could be less generic for users with their own `chain::Listen` listener that is *not* `Send` or `Sync`, but given multi-threading support is important and the LDK-included `chain::Listen` implementations are `Send + Sync`, this seems like an acceptable tradeoff.
- Loading branch information
1 parent
6259e7a
commit 6cc0cd7
Showing
2 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
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