From b62f085e5100ff24a202cf1af0894b451e128923 Mon Sep 17 00:00:00 2001 From: ppom Date: Mon, 14 Jul 2025 12:00:00 +0200 Subject: [PATCH] Fix trigger persistance Triggers were only persisted for retry duration, instead of longuest action duration. As retry is often shorter than after, this would make reaction forget most triggers on restart. entry_timeout is now set to longuest_action_duration. Cherry picked from the duplicate branch. --- src/daemon/filter/state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/filter/state.rs b/src/daemon/filter/state.rs index 469d2c6..5cb98ce 100644 --- a/src/daemon/filter/state.rs +++ b/src/daemon/filter/state.rs @@ -58,7 +58,7 @@ impl State { )?, triggers: db.open_tree( filter_triggers_db_name(filter), - filter.retry_duration().unwrap_or_default(), + filter.longuest_action_duration(), |(key, value)| Ok((to_matchtime(&key)?, to_u64(&value)?)), )?, };