Skip to content

Commit 182aebb

Browse files
committed
Remove dependency on FxHash
Signed-off-by: Nick Cameron <nrc@ncameron.org>
1 parent ddb4e42 commit 182aebb

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ name = "tikv_client"
2020
[dependencies]
2121
failure = "0.1"
2222
futures-preview = { version = "0.3.0-alpha.15", features = ["compat"] }
23-
fxhash = "0.2"
2423
grpcio = { version = "0.5.0-alpha", features = [ "secure", "prost-codec" ], default-features = false }
2524
lazy_static = "0.2.1"
2625
log = "0.3.9"

src/rpc/pd/leader.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
22

33
use std::{
4+
collections::HashSet,
45
sync::{Arc, RwLock},
56
thread::{self, JoinHandle},
67
time::{Duration, Instant},
@@ -17,7 +18,6 @@ use futures::{
1718
stream::TryStreamExt,
1819
Future,
1920
};
20-
use fxhash::FxHashSet as HashSet;
2121
use grpcio::{CallOption, Environment, WriteFlags};
2222
use kvproto::pdpb;
2323
use log::*;
@@ -309,8 +309,7 @@ pub fn validate_endpoints(
309309
security_mgr: &SecurityManager,
310310
timeout: Duration,
311311
) -> Result<(pdpb::PdClient, pdpb::GetMembersResponse)> {
312-
let len = endpoints.len();
313-
let mut endpoints_set = HashSet::with_capacity_and_hasher(len, Default::default());
312+
let mut endpoints_set = HashSet::with_capacity(endpoints.len());
314313

315314
let mut members = None;
316315
let mut cluster_id = None;

0 commit comments

Comments
 (0)