Skip to content

Commit

Permalink
chore(deps): replace fnv with fx
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jun 21, 2024
1 parent 0712adc commit e3a9c9d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/net/network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ metrics.workspace = true
auto_impl.workspace = true
aquamarine.workspace = true
tracing.workspace = true
fnv = "1.0"
rustc-hash.workspace = true
thiserror.workspace = true
parking_lot.workspace = true
rand.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions crates/net/network/src/session/active.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use crate::{
},
};
use core::sync::atomic::Ordering;
use fnv::FnvHashMap;
use futures::{stream::Fuse, SinkExt, StreamExt};
use reth_eth_wire::{
capability::Capabilities,
Expand All @@ -21,6 +20,7 @@ use reth_eth_wire::{
use reth_metrics::common::mpsc::MeteredPollSender;
use reth_network_p2p::error::RequestError;
use reth_network_peers::PeerId;
use rustc_hash::FxHashMap;
use std::{
collections::VecDeque,
future::Future,
Expand Down Expand Up @@ -81,7 +81,7 @@ pub(crate) struct ActiveSession {
/// Incoming internal requests which are delegated to the remote peer.
pub(crate) internal_request_tx: Fuse<ReceiverStream<PeerRequest>>,
/// All requests sent to the remote peer we're waiting on a response
pub(crate) inflight_requests: FnvHashMap<u64, InflightRequest>,
pub(crate) inflight_requests: FxHashMap<u64, InflightRequest>,
/// All requests that were sent by the remote peer and we're waiting on an internal response
pub(crate) received_requests_from_remote: Vec<ReceivedRequest>,
/// Buffered messages that should be handled and sent to the peer.
Expand Down
4 changes: 2 additions & 2 deletions crates/net/network/src/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::{
metrics::SessionManagerMetrics,
session::{active::ActiveSession, config::SessionCounter},
};
use fnv::FnvHashMap;
use futures::{future::Either, io, FutureExt, StreamExt};
use reth_ecies::{stream::ECIESStream, ECIESError};
use reth_eth_wire::{
Expand All @@ -18,6 +17,7 @@ use reth_metrics::common::mpsc::MeteredPollSender;
use reth_network_peers::PeerId;
use reth_primitives::{ForkFilter, ForkId, ForkTransition, Head};
use reth_tasks::TaskSpawner;
use rustc_hash::FxHashMap;
use secp256k1::SecretKey;
use std::{
collections::HashMap,
Expand Down Expand Up @@ -86,7 +86,7 @@ pub struct SessionManager {
///
/// Events produced during the authentication phase are reported to this manager. Once the
/// session is authenticated, it can be moved to the `active_session` set.
pending_sessions: FnvHashMap<SessionId, PendingSessionHandle>,
pending_sessions: FxHashMap<SessionId, PendingSessionHandle>,
/// All active sessions that are ready to exchange messages.
active_sessions: HashMap<PeerId, ActiveSessionHandle>,
/// The original Sender half of the [`PendingSessionEvent`] channel.
Expand Down

0 comments on commit e3a9c9d

Please sign in to comment.