Monomorphize: just use the pareto timeout implementation.

This commit is contained in:
Nick Mathewson 2021-07-14 11:21:41 -04:00
parent f341e493ea
commit 2bc762a3ca
1 changed files with 2 additions and 3 deletions

View File

@ -30,14 +30,13 @@ pub struct CircuitBuilder<R: Runtime> {
/// A channel manager that this circuit builder uses to make channels.
chanmgr: Arc<ChanMgr<R>>,
/// An estimator to determine the correct timeouts for circuit building.
timeouts: Box<dyn TimeoutEstimator + Send + Sync>,
timeouts: ParetoTimeoutEstimator,
}
impl<R: Runtime> CircuitBuilder<R> {
/// Construct a new [`CircuitBuilder`].
pub fn new(runtime: R, chanmgr: Arc<ChanMgr<R>>) -> Self {
// XXXX make this configurable and changeable.
let timeouts = Box::new(ParetoTimeoutEstimator::default());
let timeouts = ParetoTimeoutEstimator::default();
CircuitBuilder {
runtime,
chanmgr,