refactor(tvix/castore/blobservice/memory): use parking_lot RwLock

This one doesn't require us to deal with poisoning, is upgradeable and
the right thing to use when locking access to data, not IO resources.

Change-Id: I78634953a73404500d28f51f1d93a87e215c8149
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11612
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: Connor Brewster <cbrewster@hey.com>
This commit is contained in:
Florian Klink 2024-05-10 08:31:11 +03:00 committed by clbot
parent 96b8b1a205
commit 84114cf02c
5 changed files with 27 additions and 31 deletions

View file

@ -42,6 +42,7 @@ url = "2.4.0"
walkdir = "2.4.0"
reqwest = { version = "0.11.22", features = ["rustls-tls-native-roots", "stream"], default-features = false }
lru = "0.12.3"
parking_lot = "0.12.2"
[dependencies.tonic-reflection]
optional = true