Skip to content

Commit

Permalink
Merge branch 'main' into ag/bulder-refactored
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinI authored Dec 7, 2024
2 parents 6960187 + 006ce0c commit 3f6e7fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sequencer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ use espresso_types::{
traits::EventConsumer, BackoffParams, L1ClientOptions, NodeState, PubKey, SeqTypes,
SolverAuctionResultsProvider, ValidatedState,
};
use futures::FutureExt;
use genesis::L1Finalized;
use hotshot::traits::election::static_committee::StaticCommittee;
use hotshot_types::traits::election::Membership;
use std::sync::Arc;
use tokio::select;
// Should move `STAKE_TABLE_CAPACITY` in the sequencer repo when we have variate stake table support
use libp2p::Multiaddr;
use network::libp2p::split_off_peer_id;
Expand Down Expand Up @@ -457,11 +457,11 @@ pub async fn init_node<P: SequencerPersistence, V: Versions>(
})?;

tracing::warn!("Waiting for at least one connection to be initialized");
futures::select! {
_ = cdn_network.wait_for_ready().fuse() => {
select! {
_ = cdn_network.wait_for_ready() => {
tracing::warn!("CDN connection initialized");
},
_ = p2p_network.wait_for_ready().fuse() => {
_ = p2p_network.wait_for_ready() => {
tracing::warn!("P2P connection initialized");
},
};
Expand Down

0 comments on commit 3f6e7fe

Please sign in to comment.