operator input: per-agent /send form (dashboard T4LK removed)
This commit is contained in:
parent
3c493934da
commit
409263f1c9
8 changed files with 142 additions and 52 deletions
|
|
@ -81,6 +81,16 @@ async fn dispatch(req: &ManagerRequest, coord: &Coordinator) -> ManagerResponse
|
|||
message: format!("{e:#}"),
|
||||
},
|
||||
},
|
||||
ManagerRequest::OperatorMsg { body } => match coord.broker.send(&Message {
|
||||
from: "operator".to_owned(),
|
||||
to: MANAGER_AGENT.to_owned(),
|
||||
body: body.clone(),
|
||||
}) {
|
||||
Ok(()) => ManagerResponse::Ok,
|
||||
Err(e) => ManagerResponse::Err {
|
||||
message: format!("{e:#}"),
|
||||
},
|
||||
},
|
||||
ManagerRequest::Status => match coord.broker.count_pending(MANAGER_AGENT) {
|
||||
Ok(unread) => ManagerResponse::Status { unread },
|
||||
Err(e) => ManagerResponse::Err {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue