Skip to content

Commit

Permalink
node: Add expect
Browse files Browse the repository at this point in the history
  • Loading branch information
goshawk-3 committed Feb 27, 2024
1 parent 0d9fce1 commit 5b8f734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/src/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ impl<N: Network, DB: database::DB, VM: vm::VMExecution>
)
.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
Expand Down

0 comments on commit 5b8f734

Please sign in to comment.