manager: receive forge notifications (ManagerRequest::Wake)

This commit is contained in:
damocles 2026-05-21 18:33:39 +02:00 committed by Mara
parent d5009cd175
commit 3b44410427
4 changed files with 46 additions and 11 deletions

View file

@ -117,6 +117,17 @@ async fn dispatch(req: &ManagerRequest, coord: &Arc<Coordinator>) -> ManagerResp
}
}
}
ManagerRequest::Wake { from, body } => match coord.broker.send(&Message {
from: from.clone(),
to: MANAGER_AGENT.to_owned(),
body: body.clone(),
in_reply_to: None,
}) {
Ok(()) => ManagerResponse::Ok,
Err(e) => ManagerResponse::Err {
message: format!("{e:#}"),
},
},
ManagerRequest::OperatorMsg { body } => match coord.broker.send(&Message {
from: hive_sh4re::OPERATOR_RECIPIENT.to_owned(),
to: MANAGER_AGENT.to_owned(),