Skip to content

Commit be84e75

Browse files
committed
fix: fmt
1 parent bb9e902 commit be84e75

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

crates/net/network-api/src/block.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@ pub trait EthWireProvider<N: NetworkPrimitives> {
2525
fn eth_wire_announce_block(&self, block: N::NewBlockPayload, hash: B256);
2626

2727
/// Announce a new block to a specific peer over the eth wire protocol.
28-
fn eth_wire_announce_block_to_peer(&self, peer_id: PeerId, block: N::NewBlockPayload, hash: B256);
28+
fn eth_wire_announce_block_to_peer(
29+
&self,
30+
peer_id: PeerId,
31+
block: N::NewBlockPayload,
32+
hash: B256,
33+
);
2934
}

crates/net/network/src/network.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,12 @@ impl<N: NetworkPrimitives> EthWireProvider<N> for NetworkHandle<N> {
242242
self.announce_block(block, hash)
243243
}
244244

245-
fn eth_wire_announce_block_to_peer(&self, peer_id: PeerId, block: N::NewBlockPayload, hash: B256) {
245+
fn eth_wire_announce_block_to_peer(
246+
&self,
247+
peer_id: PeerId,
248+
block: N::NewBlockPayload,
249+
hash: B256,
250+
) {
246251
let msg = NewBlockMessage { hash, block: Arc::new(block) };
247252
self.send_eth_message(peer_id, PeerMessage::NewBlock(msg))
248253
}

0 commit comments

Comments
 (0)