diff --git a/crates/tor-dirmgr/src/lib.rs b/crates/tor-dirmgr/src/lib.rs index cd6489fdc..8f5b50db2 100644 --- a/crates/tor-dirmgr/src/lib.rs +++ b/crates/tor-dirmgr/src/lib.rs @@ -236,7 +236,7 @@ pub struct DirMgr { // TODO(nickm): I'd like to use an rwlock, but that's not feasible, since // rusqlite::Connection isn't Sync. // TODO is needed? - store: Mutex, + store: Arc>, /// Our latest sufficiently bootstrapped directory, if we have one. /// /// We use the RwLock so that we can give this out to a bunch of other @@ -848,7 +848,7 @@ impl DirMgr { Ok(DirMgr { config: config.into(), - store, + store: store.into(), netdir, default_parameters, events,