Skip to content

Commit

Permalink
changing hasher
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubDoka committed Dec 25, 2023
1 parent c271dbd commit a297012
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file added perf.data
Binary file not shown.
Binary file added perf.data.old
Binary file not shown.
3 changes: 2 additions & 1 deletion swarm/src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ use crate::StreamProtocol;
use core::slice;
use libp2p_core::Multiaddr;
use std::collections::{HashMap, HashSet};
use std::hash::BuildHasher;
use std::ops::Not;
use std::{error, fmt, io, task::Context, task::Poll, time::Duration};

Expand Down Expand Up @@ -333,7 +334,7 @@ pub enum ProtocolsChange<'a> {
impl<'a> ProtocolsChange<'a> {
/// Compute the [`ProtocolsChange`]s required to go from `existing_protocols` to `new_protocols`.
pub(crate) fn from_full_sets<T: AsRef<str>>(
existing_protocols: &mut HashMap<AsStrHashEq<T>, bool>,
existing_protocols: &mut HashMap<AsStrHashEq<T>, bool, impl BuildHasher>,
new_protocols: impl IntoIterator<Item = T>,
temp_owner: &'a mut Vec<StreamProtocol>,
) -> impl Iterator<Item = Self> {
Expand Down

0 comments on commit a297012

Please sign in to comment.