Compare commits
1 Commits
0ccfa8be98
...
e0bb98e855
Author | SHA1 | Date | |
---|---|---|---|
e0bb98e855 |
@ -216,6 +216,7 @@ impl ServerWasiView {
|
|||||||
.inherit_stdio()
|
.inherit_stdio()
|
||||||
.inherit_stdout()
|
.inherit_stdout()
|
||||||
.inherit_stderr()
|
.inherit_stderr()
|
||||||
|
.inherit_env()
|
||||||
.inherit_network()
|
.inherit_network()
|
||||||
.preopened_dir("/", "/", DirPerms::all(), FilePerms::all())
|
.preopened_dir("/", "/", DirPerms::all(), FilePerms::all())
|
||||||
.expect("to be able to open root")
|
.expect("to be able to open root")
|
||||||
|
@ -30,9 +30,8 @@ impl notmad::Component for AgentRefresh {
|
|||||||
&self,
|
&self,
|
||||||
cancellation_token: tokio_util::sync::CancellationToken,
|
cancellation_token: tokio_util::sync::CancellationToken,
|
||||||
) -> Result<(), notmad::MadError> {
|
) -> Result<(), notmad::MadError> {
|
||||||
// let cancel =
|
let cancel =
|
||||||
// nodrift::schedule_drifter(std::time::Duration::from_secs(60 * 10), self.clone());
|
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! {
|
tokio::select! {
|
||||||
_ = cancel.cancelled() => {},
|
_ = cancel.cancelled() => {},
|
||||||
_ = cancellation_token.cancelled() => {
|
_ = cancellation_token.cancelled() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user