Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ackintosh committed Apr 3, 2024
1 parent b88e991 commit 8f5a7c9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions censoring/src/honest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ fn build_transport(keypair: &Keypair) -> libp2p::core::transport::Boxed<(PeerId,
transport
.upgrade(libp2p::core::upgrade::Version::V1)
.authenticate(
noise::Config::new(keypair)
.expect("signing can fail only once during starting a node"),
noise::Config::new(keypair).expect("signing can fail only once during starting a node"),
)
.multiplex(yamux::Config::default())
.timeout(Duration::from_secs(20))
Expand Down
3 changes: 1 addition & 2 deletions eth_consensus/simulation/src/network/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ pub fn build_transport(
transport
.upgrade(libp2p::core::upgrade::Version::V1)
.authenticate(
noise::Config::new(keypair)
.expect("signing can fail only once during starting a node"),
noise::Config::new(keypair).expect("signing can fail only once during starting a node"),
)
.multiplex(yamux::Config::default())
.timeout(Duration::from_secs(20))
Expand Down
3 changes: 1 addition & 2 deletions scoring/src/beacon_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ fn build_transport(keypair: &Keypair) -> libp2p::core::transport::Boxed<(PeerId,
transport
.upgrade(libp2p::core::upgrade::Version::V1)
.authenticate(
noise::Config::new(keypair)
.expect("signing can fail only once during starting a node"),
noise::Config::new(keypair).expect("signing can fail only once during starting a node"),
)
.multiplex(yamux::Config::default())
.timeout(Duration::from_secs(20))
Expand Down
3 changes: 1 addition & 2 deletions smoke/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ fn build_transport(keypair: &Keypair) -> libp2p::core::transport::Boxed<(PeerId,
transport
.upgrade(libp2p::core::upgrade::Version::V1)
.authenticate(
noise::Config::new(keypair)
.expect("signing can fail only once during starting a node"),
noise::Config::new(keypair).expect("signing can fail only once during starting a node"),
)
.multiplex(yamux::Config::default())
.timeout(Duration::from_secs(20))
Expand Down

0 comments on commit 8f5a7c9

Please sign in to comment.