change RwLock<Option<Arc>> to ArcSwapOption

This commit is contained in:
Igor Katson 2024-11-16 11:11:56 +00:00
parent 855e7ccaeb
commit 1168307189
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
3 changed files with 13 additions and 5 deletions

7
Cargo.lock generated
View file

@ -129,6 +129,12 @@ version = "1.0.89"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6"
[[package]]
name = "arc-swap"
version = "1.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "69f7f8c3906b62b754cd5326047894316021dcfe5a194c8ea52bdd94934a3457"
[[package]]
name = "assert_cfg"
version = "0.1.0"
@ -2604,6 +2610,7 @@ name = "librqbit"
version = "7.1.0-beta.1"
dependencies = [
"anyhow",
"arc-swap",
"async-backtrace",
"async-stream",
"async-trait",