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.
This commit is contained in:
ppom 2025-07-14 12:00:00 +02:00
commit b62f085e51
No known key found for this signature in database

View file

@ -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)?)),
)?,
};