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 {