Revert "agent: add Wake command - co-process self-wake via agent socket"
This reverts commit 68a9b8575b1647643c87bd753767acabf96528c3.
This commit is contained in:
parent
f0e87f0bc5
commit
862bc1de44
2 changed files with 0 additions and 22 deletions
|
|
@ -188,20 +188,5 @@ async fn dispatch(req: &AgentRequest, agent: &str, coord: &Arc<Coordinator>) ->
|
|||
},
|
||||
}
|
||||
}
|
||||
AgentRequest::Wake { from, body } => {
|
||||
// Deliver a message to this agent from a co-process (e.g. a
|
||||
// Matrix daemon). Identical to `Send { to: agent }` but the
|
||||
// recipient is always the owning agent — no routing needed.
|
||||
match broker.send(&Message {
|
||||
from: from.clone(),
|
||||
to: agent.to_owned(),
|
||||
body: body.clone(),
|
||||
}) {
|
||||
Ok(()) => AgentResponse::Ok,
|
||||
Err(e) => AgentResponse::Err {
|
||||
message: format!("{e:#}"),
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue