mirror of
https://framagit.org/ppom/reaction
synced 2026-03-14 12:45:47 +01:00
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:
parent
fd0dc91824
commit
b62f085e51
1 changed files with 1 additions and 1 deletions
|
|
@ -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)?)),
|
||||
)?,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue