/// Can be used to instantiate an empty pool without a CUP.
Can be used to instantiate an empty pool without a CUP.
Can be used to instantiate an empty pool without a CUP .
pub fn from_uncached(
        uncached: UncachedConsensusPoolImpl,
        registry: ic_metrics::MetricsRegistry,
    ) -> ConsensusPoolImpl {
        let cache = Arc::new(ConsensusCacheImpl::new(&uncached));
        ConsensusPoolImpl {
            validated: uncached.validated,
            unvalidated: uncached.unvalidated,
            validated_metrics: PoolMetrics::new(registry.clone(), POOL_TYPE_VALIDATED),
            unvalidated_metrics: PoolMetrics::new(registry, POOL_TYPE_UNVALIDATED),
            cache,
            backup: None,
        }
    }
pub fn from_uncached ( uncached : UncachedConsensusPoolImpl , registry : ic_metrics :: MetricsRegistry , ) -> ConsensusPoolImpl { let cache = Arc :: new ( ConsensusCacheImpl :: new ( & uncached ) ) ; ConsensusPoolImpl { validated : uncached . validated , unvalidated : uncached . unvalidated , validated_metrics : PoolMetrics :: new ( registry . clone ( ) , POOL_TYPE_VALIDATED ) , unvalidated_metrics : PoolMetrics :: new ( registry , POOL_TYPE_UNVALIDATED ) , cache , backup : None , } }
Can be used to instantiate an empty pool without a CUP.
Can be used to instantiate an empty pool without a CUP .
uncached
UncachedConsensusPoolImpl
registry
ic_metrics::MetricsRegistry