From 359fa558f8479d96defd7ec0822def9faa9d16a4 Mon Sep 17 00:00:00 2001 From: goshawk-3 Date: Tue, 27 Feb 2024 11:34:38 +0200 Subject: [PATCH] node: Add expect --- node/src/chain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/src/chain.rs b/node/src/chain.rs index f38365b358..086db131a4 100644 --- a/node/src/chain.rs +++ b/node/src/chain.rs @@ -97,7 +97,7 @@ impl ) .await?; - let acc = self.acceptor.as_mut().unwrap(); + let acc = self.acceptor.as_mut().expect("initialize is called"); acc.write().await.spawn_task().await; // Start-up FSM instance