Require Send+Sync for BridgeDescProvider
We require these for NetDirProvider, so this shouldn't be a big reach.
This commit is contained in:
parent
c4b82aa8a8
commit
5cb9e1987e
|
@ -67,7 +67,7 @@ impl tor_linkspec::HasRelayIdsLegacy for BridgeDesc {
|
|||
/// This is analogous to NetDirProvider.
|
||||
///
|
||||
/// TODO pt-client: improve documentation.
|
||||
pub trait BridgeDescProvider: DynClone {
|
||||
pub trait BridgeDescProvider: DynClone + Send + Sync {
|
||||
/// Return the current set of bridge descriptors.
|
||||
fn bridges(&self) -> Arc<BridgeDescList>;
|
||||
|
||||
|
|
Loading…
Reference in New Issue