mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
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 make the type bounds on `chain::Listen` generic across `chain::Listen + ?Sized`, which the existing bound of `&dyn chain::Listen` satisfies. Thus, this is strictly less restrictive and allows for the use of `&dyn chain::Listen + Send + Sync`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |