fix formatting (treefmt)

This commit is contained in:
damocles 2026-07-05 12:00:18 +02:00
commit 6d2e56e7c8
2 changed files with 3 additions and 8 deletions

View file

@ -389,11 +389,8 @@ impl Surface for AgentSurface {
}
async fn wake_external(socket: &Path, from: String, body: String) -> Result<()> {
let resp: AgentResponse = client::request(
socket,
&AgentRequest::Wake { from, body },
)
.await?;
let resp: AgentResponse =
client::request(socket, &AgentRequest::Wake { from, body }).await?;
match resp {
AgentResponse::Ok => Ok(()),
AgentResponse::Err { message } => anyhow::bail!("wake: {message}"),

View file

@ -1453,9 +1453,7 @@ mod tests {
let h = open_broker();
let broker = &h.broker;
broker.send(&msg("a", "b", "mail")).unwrap();
broker
.send(&msg("matrix", "b", "matrix wake"))
.unwrap();
broker.send(&msg("matrix", "b", "matrix wake")).unwrap();
let batch = broker.recv_batch("b", 10).unwrap();
assert_eq!(batch.len(), 2);
// FIFO: mail was inserted first, comes out first.