From d96af5225a828c10518a06b3639affad7052d57d Mon Sep 17 00:00:00 2001 From: tediou5 Date: Wed, 26 Jun 2024 14:53:09 +0800 Subject: [PATCH] fix: caches maintainer wait for sheduled delay timeout to reinitialization --- .../bin/subspace-farmer/commands/cluster/controller/caches.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/subspace-farmer/src/bin/subspace-farmer/commands/cluster/controller/caches.rs b/crates/subspace-farmer/src/bin/subspace-farmer/commands/cluster/controller/caches.rs index 2704b4f846..17a1109f2c 100644 --- a/crates/subspace-farmer/src/bin/subspace-farmer/commands/cluster/controller/caches.rs +++ b/crates/subspace-farmer/src/bin/subspace-farmer/commands/cluster/controller/caches.rs @@ -118,7 +118,7 @@ pub(super) async fn maintain_caches( loop { if cache_reinitialization.is_terminated() && let Some(time) = scheduled_reinitialization_for - && time >= Instant::now() + && time <= Instant::now() { scheduled_reinitialization_for.take();