Skip to content

Commit

Permalink
Upgrade to twox-hash 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shepmaster committed Oct 18, 2024
1 parent bdc32fa commit 7d017f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ pem = "3"
percent-encoding = "2.1.0"
serde = "1"
serde_json = "1"
twox-hash = "1"
twox-hash = { version = "2", default-features = false, features = ["xxhash64"] }
url = "2.1"

[dependencies.native-tls]
Expand Down
4 changes: 2 additions & 2 deletions src/conn/stmt_cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// modified, or distributed except according to those terms.

use lru::LruCache;
use twox_hash::XxHash;
use twox_hash::XxHash64;

use std::{
borrow::Borrow,
Expand Down Expand Up @@ -42,7 +42,7 @@ pub struct Entry {
pub struct StmtCache {
cap: usize,
cache: LruCache<u32, Entry>,
query_map: HashMap<QueryString, u32, BuildHasherDefault<XxHash>>,
query_map: HashMap<QueryString, u32, BuildHasherDefault<XxHash64>>,
}

impl StmtCache {
Expand Down

0 comments on commit 7d017f9

Please sign in to comment.