Skip to content

Commit

Permalink
Merge pull request #163 from abdolence/redb-2-fix
Browse files Browse the repository at this point in the history
Migrated to redb v2
  • Loading branch information
abdolence authored Apr 2, 2024
2 parents aaad6f7 + f191271 commit 9ff2ed7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ chrono = { version = "0.4", features = ["serde", "clock"], default-features = fa
async-trait = "0.1"
hex = "0.4"
backoff = { version = "0.4", features = ["tokio"] }
redb = { version = "1.5", optional = true }
redb = { version = "2.0", optional = true }
moka = { version = "0.12", features = ["future"], optional = true } # Caching library

[dev-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion src/cache/backends/persistent_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl FirestoreCacheBackend for FirestorePersistentCacheBackend {
"Invalidating collection and draining the corresponding table.",
);
let mut table = write_txn.open_table(td)?;
table.drain::<&str>(..)?;
table.retain(|_, _| false)?;
}
write_txn.commit()?;
}
Expand Down

0 comments on commit 9ff2ed7

Please sign in to comment.