Require Send+Sync for BridgeDescProvider

We require these for NetDirProvider, so this shouldn't be a big reach.
This commit is contained in:
Nick Mathewson 2022-10-31 11:43:33 -04:00
parent c4b82aa8a8
commit 5cb9e1987e
1 changed files with 1 additions and 1 deletions

View File

@ -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>;