MCPcopy Create free account
hub / github.com/densumesh/broccoli / error_handler

Function error_handler

examples/consumer.rs:34–37  ·  view source on GitHub ↗
(msg: JobPayload, err: BroccoliError)

Source from the content-addressed store, hash-verified

32}
33
34async fn error_handler(msg: JobPayload, err: BroccoliError) -> Result<(), BroccoliError> {
35 eprintln!("Failed to process message: {}. Error: {}", msg.id, err);
36 Ok(())
37}
38
39#[tokio::main]
40async fn main() -> Result<(), Box<dyn Error>> {

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected