pub(crate) fn new(config: Config) -> Self {
        let holders_limit = (100 * usize::from(config.infection_target()))
            / (100 - usize::from(config.saturation_limit_percent()));
        GossipTable {
            current: HashMap::new(),
            finished: HashSet::new(),
            timeouts: Timeouts::new(),
            infection_target: usize::from(config.infection_target()),
            holders_limit,
            finished_entry_duration: config.finished_entry_duration().into(),
        }
    }
/// Returns a new `GossipTable` using the provided configuration.
Returns a new `GossipTable` using the provided configuration.
Returns a new ` GossipTable ` using the provided configuration .
pub(crate) fn new(config: Config) -> Self {
        let holders_limit = (100 * usize::from(config.infection_target()))
            / (100 - usize::from(config.saturation_limit_percent()));
        GossipTable {
            current: HashMap::new(),
            finished: HashSet::new(),
            timeouts: Timeouts::new(),
            infection_target: usize::from(config.infection_target()),
            holders_limit,
            finished_entry_duration: config.finished_entry_duration().into(),
        }
    }
pub ( crate ) fn new ( config : Config ) -> Self { let holders_limit = ( 100 * usize :: from ( config . infection_target ( ) ) ) / ( 100 - usize :: from ( config . saturation_limit_percent ( ) ) ) ; GossipTable { current : HashMap :: new ( ) , finished : HashSet :: new ( ) , timeouts : Timeouts :: new ( ) , infection_target : usize :: from ( config . infection_target ( ) ) , holders_limit , finished_entry_duration : config . finished_entry_duration ( ) . into ( ) , } }
Returns a new `GossipTable` using the provided configuration.
Returns a new ` GossipTable ` using the provided configuration .
config
Config
config
Config