From 6621944a32fd225d1a927deb12a91e1e199e2de3 Mon Sep 17 00:00:00 2001 From: Kevin Hoffman Date: Wed, 8 Jun 2022 11:37:57 -0400 Subject: [PATCH] Failure to handle link puts during startups no longer crashes provider (#104) * Failure to handle link puts during startups no longer crashes provider Signed-off-by: Kevin Hoffman * Updating error message Signed-off-by: Kevin Hoffman * Making error message more friendly Signed-off-by: Kevin Hoffman --- rpc-rs/src/provider_main.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpc-rs/src/provider_main.rs b/rpc-rs/src/provider_main.rs index a0d8a87..04d4237 100644 --- a/rpc-rs/src/provider_main.rs +++ b/rpc-rs/src/provider_main.rs @@ -196,12 +196,12 @@ where for ld in initial_links.into_iter() { if let Err(e) = provider_dispatch.put_link(&ld).await { eprintln!( - "Error starting provider: failed to initialize link {:?}", - &ld + "Failed to initialize link during provider startup - ({:?}): {:?}", + &ld, e ); - return Err(Box::new(e)); + } else { + bridge.put_link(ld).await; } - bridge.put_link(ld).await; } // subscribe to nats topics