MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / new

Method new

crates/openshell-sandbox/src/activity_aggregator.rs:38–46  ·  view source on GitHub ↗
(rx: mpsc::Receiver<ActivityEvent>, flush_interval_secs: u64)

Source from the content-addressed store, hash-verified

36
37impl 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected