(rx: mpsc::Receiver<ActivityEvent>, flush_interval_secs: u64)
| 36 | |
| 37 | impl ActivityAggregator { |
| 38 | pub fn new(rx: mpsc::Receiver<ActivityEvent>, flush_interval_secs: u64) -> Self { |
| 39 | Self { |
| 40 | rx, |
| 41 | network_activity_count: 0, |
| 42 | denied_action_count: 0, |
| 43 | denials_by_group: HashMap::new(), |
| 44 | flush_interval_secs, |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | pub async fn run<F, Fut>(mut self, flush_callback: F) |
| 49 | where |
nothing calls this directly
no outgoing calls
no test coverage detected