implement broadcast messaging: send to '*' reaches all agents with hint
This commit is contained in:
parent
a57e500f48
commit
abcf7a0c41
4 changed files with 41 additions and 11 deletions
|
|
@ -117,6 +117,9 @@ impl Coordinator {
|
|||
let _ = std::fs::remove_file(&socket.path);
|
||||
}
|
||||
}
|
||||
pub fn list_agents(&self) -> Vec<String> {
|
||||
self.agents.lock().unwrap().keys().cloned().collect()
|
||||
}
|
||||
|
||||
/// Mark an agent as in-progress (only one state per agent for now).
|
||||
pub fn set_transient(&self, name: &str, kind: TransientKind) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue