Skip to content

Commit

Permalink
Failure to handle link puts during startups no longer crashes provider (
Browse files Browse the repository at this point in the history
#104)

* Failure to handle link puts during startups no longer crashes provider

Signed-off-by: Kevin Hoffman <[email protected]>

* Updating error message

Signed-off-by: Kevin Hoffman <[email protected]>

* Making error message more friendly

Signed-off-by: Kevin Hoffman <[email protected]>
  • Loading branch information
autodidaddict authored Jun 8, 2022
1 parent 52e52e7 commit 6621944
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rpc-rs/src/provider_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6621944

Please sign in to comment.