repoint post_turn_counts + dedup web_ui stats onto todo_server::dial (#2635 inc 1)
This commit is contained in:
parent
e8d101d663
commit
e11e8294a3
3 changed files with 46 additions and 69 deletions
|
|
@ -332,15 +332,13 @@ impl Surface for AgentSurface {
|
|||
Ok(Response::LooseEnds { loose_ends }) => u64::try_from(loose_ends.len()).ok(),
|
||||
_ => None,
|
||||
};
|
||||
let reminders = match client::request::<_, Response>(
|
||||
socket,
|
||||
&Request::CountPendingReminders { agent: None },
|
||||
)
|
||||
.await
|
||||
{
|
||||
Ok(Response::PendingRemindersCount { count }) => Some(count),
|
||||
_ => None,
|
||||
};
|
||||
// Reminders are harness-local (#2635 inc 1) — dial the in-agent
|
||||
// socket directly instead of the broker.
|
||||
let reminders =
|
||||
match todo_server::dial(&hive_agent_sock::Request::CountPendingReminders).await {
|
||||
Some(hive_agent_sock::Response::PendingRemindersCount { count }) => Some(count),
|
||||
_ => None,
|
||||
};
|
||||
(threads, reminders)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue