Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -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() => {
|
||||
|
Reference in New Issue
Block a user