mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 18:40:39 +08:00
node: Don't panic on initialization error
This commit is contained in:
@@ -338,15 +338,12 @@ where
|
||||
G: Signer + Ecdh<Pk = NodeId>,
|
||||
{
|
||||
pub fn new(
|
||||
mut service: Service<D, S, G>,
|
||||
service: Service<D, S, G>,
|
||||
worker: chan::Sender<Task>,
|
||||
signer: G,
|
||||
proxy: net::SocketAddr,
|
||||
clock: LocalTime,
|
||||
) -> Self {
|
||||
service
|
||||
.initialize(clock)
|
||||
.expect("Wire::new: error initializing service");
|
||||
assert!(service.started().is_some(), "Service must be initialized");
|
||||
|
||||
Self {
|
||||
service,
|
||||
|
||||
Reference in New Issue
Block a user