Skip to content

Commit

Permalink
feat(node): log if RPC server fails to start
Browse files Browse the repository at this point in the history
  • Loading branch information
b-zee authored and joshuef committed Dec 12, 2023
1 parent d862dc1 commit fcea7b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sn_node/src/bin/safenode/rpc_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,12 @@ pub(crate) fn start_rpc_service(

let _handle = tokio::spawn(async move {
// adding our service to our server.
Server::builder()
if let Err(e) = Server::builder()
.add_service(SafeNodeServer::new(service))
.serve(addr)
.await
{
error!("RPC Server failed to start: {e}");
}
});
}

0 comments on commit fcea7b7

Please sign in to comment.