Skip to content

Commit

Permalink
Peerd: Log bridge sending error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCharlatan committed May 16, 2022
1 parent 78eda01 commit 2aaa124
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/peerd/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,16 @@ impl PeerReceiverRuntime {
req: <Unmarshaller<Msg> as Unmarshall>::Data,
) -> Result<(), Error> {
debug!("Forwarding FWP message over BRIDGE interface to the runtime");
self.bridge.send_to(
if let Err(err) = self.bridge.send_to(
ServiceBus::Bridge,
self.internal_identity.clone(),
Request::Protocol((&*req).clone()),
)?;
Ok(())
) {
error!("Error sending over bridge: {}", err);
Err(err.into())
} else {
Ok(())
}
}
}

Expand Down

0 comments on commit 2aaa124

Please sign in to comment.