manager: receive forge notifications (ManagerRequest::Wake)
This commit is contained in:
parent
d5009cd175
commit
3b44410427
4 changed files with 46 additions and 11 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue