fix: cargo fmt drift on probe_capabilities call #259
1 changed files with 5 additions and 3 deletions
|
|
@ -648,9 +648,11 @@ pub async fn autospawn_agent_if_configured(state: &SharedState) {
|
|||
let caps = probe_capabilities();
|
||||
match state.store.try_lock() {
|
||||
Ok(store) => {
|
||||
if let Err(e) =
|
||||
store.register_agent(aid, serde_json::to_value(&caps).unwrap_or_default(), Some(&hostname))
|
||||
{
|
||||
if let Err(e) = store.register_agent(
|
||||
aid,
|
||||
serde_json::to_value(&caps).unwrap_or_default(),
|
||||
Some(&hostname),
|
||||
) {
|
||||
warn!(agent_id = %aid, error = %e, "autospawn: failed to register agent in store");
|
||||
} else {
|
||||
info!(agent_id = %aid, hostname = %hostname, capabilities = ?caps, "autospawn: agent registered for task work");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue