todos: reopen an acked keyed row when the caller says so
This commit is contained in:
parent
d5782965db
commit
1b72ed56ff
12 changed files with 158 additions and 45 deletions
|
|
@ -94,7 +94,7 @@ pub async fn run(todos: Arc<Todos>, wake: Arc<Notify>) {
|
|||
/// interaction is testable without a timer.
|
||||
fn reconcile(todos: &Todos, wake: &Notify, summary: Option<&str>) {
|
||||
match summary {
|
||||
Some(summary) => match todos.upsert(SUBSYSTEM, Some(TODO_KEY), summary, None) {
|
||||
Some(summary) => match todos.upsert(SUBSYSTEM, Some(TODO_KEY), summary, None, false) {
|
||||
// Only a genuine change wakes the agent — an identical summary
|
||||
// means the situation is unchanged and already in its list.
|
||||
Ok((_, true)) => wake.notify_one(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue