/// Removes ingress history entries that are associated with a pruning_time
/// that's older than the given time.
Removes ingress history entries that are associated with a pruning_time
that's older than the given time.
Removes ingress history entries that are associated with a pruning_time that ' s older than the given time .
pub fn prune(&mut self, time: Time) {
        let new_pruning_times = Arc::make_mut(&mut self.pruning_times).split_off(&time);
        let statuses = Arc::make_mut(&mut self.statuses);
        for t in self.pruning_times.as_ref().keys() {
            for message_id in self.pruning_times.get(t).unwrap() {
                statuses.remove(message_id);
            }
        }
        self.pruning_times = Arc::new(new_pruning_times);
    }
pub fn prune ( & mut self , time : Time ) { let new_pruning_times = Arc :: make_mut ( & mut self . pruning_times ) . split_off ( & time ) ; let statuses = Arc :: make_mut ( & mut self . statuses ) ; for t in self . pruning_times . as_ref ( ) . keys ( ) { for message_id in self . pruning_times . get ( t ) . unwrap ( ) { statuses . remove ( message_id ) ; } } self . pruning_times = Arc :: new ( new_pruning_times ) ; }
Removes ingress history entries that are associated with a pruning_time
that's older than the given time.
Removes ingress history entries that are associated with a pruning_time that ' s older than the given time .
&mut self
time
Time