Replace unreachable!() with proper error in retry loop

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-07 03:50:57 -04:00
parent c2eb9c53cb
commit f387041aca

View file

@ -314,7 +314,7 @@ impl AutoAgent {
}
}
}
unreachable!()
Err(format!("{}: all retry attempts exhausted", name))
}
async fn dispatch_tools(&mut self, backend: &mut Backend, msg: &Message) {