From 249dddeb90da19dec958ec93d96b902300273547 Mon Sep 17 00:00:00 2001 From: Jake Goulding Date: Fri, 18 Oct 2024 09:49:43 -0400 Subject: [PATCH] Upgrade to twox-hash 2.0 --- Cargo.toml | 2 +- src/conn/stmt_cache.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f169707e..f95ef690 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ tokio-util = { version = "0.7.2", features = ["codec", "io"] } tracing = { version = "0.1.37", default-features = false, features = [ "attributes", ], optional = true } -twox-hash = "1" +twox-hash = { version = "2", default-features = false, features = ["xxhash64"] } url = "2.1" [dependencies.tokio-rustls] diff --git a/src/conn/stmt_cache.rs b/src/conn/stmt_cache.rs index f72240f9..84a99c20 100644 --- a/src/conn/stmt_cache.rs +++ b/src/conn/stmt_cache.rs @@ -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, @@ -42,7 +42,7 @@ pub struct Entry { pub struct StmtCache { cap: usize, cache: LruCache, - query_map: HashMap>, + query_map: HashMap>, } impl StmtCache {