From efec76d28cc0b8a1b7a6efdd20281e6017ad0337 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 5 Jan 2025 20:50:49 +0100 Subject: [PATCH] feat: run more often Signed-off-by: kjuulh --- crates/churn/src/agent/plugins.rs | 1 - crates/churn/src/agent/refresh.rs | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/churn/src/agent/plugins.rs b/crates/churn/src/agent/plugins.rs index 6a75f7b..aa39a02 100644 --- a/crates/churn/src/agent/plugins.rs +++ b/crates/churn/src/agent/plugins.rs @@ -216,7 +216,6 @@ impl ServerWasiView { .inherit_stdio() .inherit_stdout() .inherit_stderr() - .inherit_env() .inherit_network() .preopened_dir("/", "/", DirPerms::all(), FilePerms::all()) .expect("to be able to open root") diff --git a/crates/churn/src/agent/refresh.rs b/crates/churn/src/agent/refresh.rs index ebd7abe..88ef954 100644 --- a/crates/churn/src/agent/refresh.rs +++ b/crates/churn/src/agent/refresh.rs @@ -30,8 +30,9 @@ impl notmad::Component for AgentRefresh { &self, cancellation_token: tokio_util::sync::CancellationToken, ) -> Result<(), notmad::MadError> { - let cancel = - nodrift::schedule_drifter(std::time::Duration::from_secs(60 * 10), self.clone()); + // let cancel = + // nodrift::schedule_drifter(std::time::Duration::from_secs(60 * 10), self.clone()); + let cancel = nodrift::schedule_drifter(std::time::Duration::from_secs(5), self.clone()); tokio::select! { _ = cancel.cancelled() => {}, _ = cancellation_token.cancelled() => {