Skip to content

Commit 092923d

Browse files
authored
chore(deps): bump lru to 95f347b (#14728)
Signed-off-by: TennyZhuang <[email protected]> Co-authored-by: TennyZhuang <[email protected]>
1 parent 8c721c4 commit 092923d

File tree

8 files changed

+13
-14
lines changed

8 files changed

+13
-14
lines changed

Cargo.lock

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,15 @@ arrow-schema-deltalake = { package = "arrow-schema", version = "48.0.1" }
144144
deltalake = { git = "https://github.com/risingwavelabs/delta-rs", rev = "5c2dccd4640490202ffe98adbd13b09cef8e007b", features = [
145145
"s3-no-concurrent-write",
146146
] }
147+
lru = { git = "https://github.com/risingwavelabs/lru-rs.git", rev = "95f347b" }
147148
parquet = "50"
148149
thiserror-ext = "0.0.11"
149150
tikv-jemalloc-ctl = { git = "https://github.com/risingwavelabs/jemallocator.git", rev = "64a2d9" }
150151
tikv-jemallocator = { git = "https://github.com/risingwavelabs/jemallocator.git", features = [
151152
"profiling",
152153
"stats",
153154
], rev = "64a2d9" }
155+
tokio-util = "0.7"
154156

155157
risingwave_backup = { path = "./src/storage/backup" }
156158
risingwave_batch = { path = "./src/batch" }
@@ -190,7 +192,6 @@ risingwave_variables = { path = "./src/utils/variables" }
190192
risingwave_java_binding = { path = "./src/java_binding" }
191193
risingwave_jni_core = { path = "src/jni_core" }
192194
rw_futures_util = { path = "src/utils/futures_util" }
193-
tokio-util = "0.7"
194195

195196
[workspace.lints.rust]
196197
# `forbid` will also prevent the misuse of `#[allow(unused)]`

src/common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ hytra = { workspace = true }
5656
itertools = "0.12"
5757
itoa = "1.0"
5858
jsonbb = "0.1.2"
59-
lru = { git = "https://github.com/risingwavelabs/lru-rs.git", rev = "cb2d7c7" }
59+
lru = { workspace = true }
6060
memcomparable = { version = "0.2", features = ["decimal"] }
6161
num-integer = "0.1"
6262
num-traits = "0.2"

src/common/src/estimate_size/collections/lru.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use std::alloc::{Allocator, Global};
1616
use std::borrow::Borrow;
1717
use std::hash::{BuildHasher, Hash};
1818

19-
use lru::{DefaultHasher, KeyRef, LruCache};
19+
use lru::{DefaultHasher, LruCache};
2020

2121
use super::{AtomicMutGuard, MutGuard};
2222
use crate::estimate_size::{EstimateSize, KvSize};
@@ -66,7 +66,7 @@ impl<K: Hash + Eq + EstimateSize, V: EstimateSize, S: BuildHasher, A: Clone + Al
6666

6767
pub fn get<Q>(&mut self, k: &Q) -> Option<&V>
6868
where
69-
KeyRef<K>: Borrow<Q>,
69+
K: Borrow<Q>,
7070
Q: Hash + Eq + ?Sized,
7171
{
7272
self.inner.get(k)
@@ -100,7 +100,7 @@ impl<K: Hash + Eq + EstimateSize, V: EstimateSize, S: BuildHasher, A: Clone + Al
100100

101101
pub fn contains<Q>(&self, k: &Q) -> bool
102102
where
103-
KeyRef<K>: Borrow<Q>,
103+
K: Borrow<Q>,
104104
Q: Hash + Eq + ?Sized,
105105
{
106106
self.inner.contains(k)

src/stream/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ governor = { version = "0.6", default-features = false, features = [
3737
hytra = "0.1.2"
3838
itertools = "0.12"
3939
local_stats_alloc = { path = "../utils/local_stats_alloc" }
40-
lru = { git = "https://github.com/risingwavelabs/lru-rs.git", rev = "cb2d7c7" }
40+
lru = { workspace = true }
4141
maplit = "1.0.2"
4242
memcomparable = "0.2"
4343
multimap = "0.10"

src/stream/src/cache/managed_lru.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use std::ops::{Deref, DerefMut};
2020
use std::sync::atomic::{AtomicU64, Ordering};
2121
use std::sync::Arc;
2222

23-
use lru::{DefaultHasher, KeyRef, LruCache};
23+
use lru::{DefaultHasher, LruCache};
2424
use risingwave_common::estimate_size::EstimateSize;
2525
use risingwave_common::metrics::LabelGuardedIntGauge;
2626
use risingwave_common::util::epoch::Epoch;
@@ -150,7 +150,7 @@ impl<K: Hash + Eq + EstimateSize, V: EstimateSize, S: BuildHasher, A: Clone + Al
150150

151151
pub fn get<Q>(&mut self, k: &Q) -> Option<&V>
152152
where
153-
KeyRef<K>: Borrow<Q>,
153+
K: Borrow<Q>,
154154
Q: Hash + Eq + ?Sized,
155155
{
156156
self.inner.get(k)
@@ -181,7 +181,7 @@ impl<K: Hash + Eq + EstimateSize, V: EstimateSize, S: BuildHasher, A: Clone + Al
181181

182182
pub fn contains<Q>(&self, k: &Q) -> bool
183183
where
184-
KeyRef<K>: Borrow<Q>,
184+
K: Borrow<Q>,
185185
Q: Hash + Eq + ?Sized,
186186
{
187187
self.inner.contains(k)

src/tests/simulation/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fail = { version = "0.5" }
2323
futures = { version = "0.3", default-features = false, features = ["alloc"] }
2424
glob = "0.3"
2525
itertools = "0.12"
26-
lru = { git = "https://github.com/risingwavelabs/lru-rs.git", rev = "cb2d7c7" }
26+
lru = { workspace = true }
2727
madsim = "0.2.22"
2828
paste = "1"
2929
pin-project = "1.1"

src/workspace-hack/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ generic-array = { version = "0.14", default-features = false, features = ["more_
6161
governor = { version = "0.6", default-features = false, features = ["dashmap", "jitter", "std"] }
6262
hashbrown-582f2526e08bb6a0 = { package = "hashbrown", version = "0.14", features = ["nightly", "raw"] }
6363
hashbrown-594e8ee84c453af0 = { package = "hashbrown", version = "0.13", features = ["raw"] }
64-
hashbrown-5ef9efb8ec2df382 = { package = "hashbrown", version = "0.12", features = ["nightly", "raw"] }
6564
hmac = { version = "0.12", default-features = false, features = ["reset"] }
6665
hyper = { version = "0.14", features = ["full"] }
6766
indexmap-dff4ba8e3ae991db = { package = "indexmap", version = "1", default-features = false, features = ["serde"] }

0 commit comments

Comments
 (0)