bridge desc mgr: Move set_dormancy to impl that is for mock too
This commit is contained in:
parent
ce0f8f41cb
commit
2c98351e2d
|
@ -502,12 +502,6 @@ impl<R: Runtime> BridgeDescMgr<R> {
|
||||||
) -> Result<Self, StartupError> {
|
) -> Result<Self, StartupError> {
|
||||||
Self::new_internal(runtime, circmgr, store.store, config, dormancy, ())
|
Self::new_internal(runtime, circmgr, store.store, config, dormancy, ())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set whether this `BridgeDescMgr` is active
|
|
||||||
// TODO this should instead be handled by a central mechanism; see TODO on Dormancy
|
|
||||||
pub fn set_dormancy(&self, _dormancy: Dormancy) {
|
|
||||||
// TODO pt-client
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// If download was successful, what we obtained
|
/// If download was successful, what we obtained
|
||||||
|
@ -588,6 +582,12 @@ impl<R: Runtime, M: Mockable<R>> BridgeDescMgr<R, M> {
|
||||||
.lock_only()
|
.lock_only()
|
||||||
.check_consistency(&self.mgr.runtime, input_bridges);
|
.check_consistency(&self.mgr.runtime, input_bridges);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Set whether this `BridgeDescMgr` is active
|
||||||
|
// TODO this should instead be handled by a central mechanism; see TODO on Dormancy
|
||||||
|
pub fn set_dormancy(&self, _dormancy: Dormancy) {
|
||||||
|
// TODO pt-client
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<R: Runtime, M: Mockable<R>> BridgeDescProvider for BridgeDescMgr<R, M> {
|
impl<R: Runtime, M: Mockable<R>> BridgeDescProvider for BridgeDescMgr<R, M> {
|
||||||
|
|
Loading…
Reference in New Issue