Skip to content

Commit

Permalink
fix: use SharedCapabilities (#5383)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 10, 2023
1 parent 505a192 commit 277cd3a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/net/network/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! See also <https://github.com/ethereum/devp2p/blob/master/README.md>
use futures::{Stream, StreamExt};
use reth_eth_wire::{capability::SharedCapability, protocol::Protocol};
use reth_eth_wire::{capability::SharedCapabilities, protocol::Protocol};
use reth_network_api::Direction;
use reth_primitives::BytesMut;
use reth_rpc_types::PeerId;
Expand Down Expand Up @@ -54,7 +54,7 @@ pub trait ConnectionHandler: Send + Sync + 'static {
/// protocol.
fn on_unsupported_by_peer(
self,
supported: &SharedCapability,
supported: &SharedCapabilities,
direction: Direction,
peer_id: PeerId,
) -> OnNotSupported;
Expand Down Expand Up @@ -211,7 +211,7 @@ pub(crate) trait DynConnectionHandler: Send + Sync + 'static {

fn on_unsupported_by_peer(
self,
supported: &SharedCapability,
supported: &SharedCapabilities,
direction: Direction,
peer_id: PeerId,
) -> OnNotSupported;
Expand All @@ -234,7 +234,7 @@ where

fn on_unsupported_by_peer(
self,
supported: &SharedCapability,
supported: &SharedCapabilities,
direction: Direction,
peer_id: PeerId,
) -> OnNotSupported {
Expand Down

0 comments on commit 277cd3a

Please sign in to comment.