6ae24b1ff9
when this was a dashmap, we needed our own expiration and parallel requests would do the same query. with moka, we can use their expiration code and get_with
15 lines
348 B
TOML
15 lines
348 B
TOML
[package]
|
|
name = "deferred-rate-limiter"
|
|
version = "0.2.0"
|
|
authors = ["Bryan Stitt <bryan@stitthappens.com>"]
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
redis-rate-limiter = { path = "../redis-rate-limiter" }
|
|
|
|
anyhow = "1.0.65"
|
|
hashbrown = "*"
|
|
moka = { version = "0.9.4", default-features = false, features = ["future"] }
|
|
tokio = "1.21.1"
|
|
tracing = "0.1.36"
|