Skip to content

Commit 00b0c64

Browse files
committed
Auto merge of #4405 - rust-lang:renovate/moka-0.x, r=Turbo87
Update Rust crate moka to v0.7.0 [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [moka](https://crates.io/crates/moka) | dependencies | minor | `=0.6.3` -> `=0.7.0` | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/rust-lang/crates.io).
2 parents bd1f50f + 900b3e0 commit 00b0c64

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ indexmap = { version = "=1.7.0", features = ["serde-1"] }
6464
tikv-jemallocator = { version = "=0.4.1", features = ['unprefixed_malloc_on_supported_platforms', 'profiling'] }
6565
lettre = { version = "=0.10.0-rc.4", default-features = false, features = ["file-transport", "smtp-transport", "native-tls", "hostname", "builder"] }
6666
minijinja = "=0.10.0"
67-
moka = "=0.6.3"
67+
moka = "=0.7.0"
6868
oauth2 = { version = "=4.1.0", default-features = false, features = ["reqwest"] }
6969
parking_lot = "=0.11.2"
7070
prometheus = { version = "=0.13.0", default-features = false }

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pub use self::database_pools::DatabasePools;
99
use std::collections::HashSet;
1010
use std::time::Duration;
1111

12-
const DEFAULT_VERSION_ID_CACHE_SIZE: usize = 10_000;
12+
const DEFAULT_VERSION_ID_CACHE_SIZE: u64 = 10_000;
1313
const DEFAULT_VERSION_ID_CACHE_TTL: u64 = 5 * 60; // 5 minutes
1414

1515
pub struct Server {
@@ -34,7 +34,7 @@ pub struct Server {
3434
pub instance_metrics_log_every_seconds: Option<u64>,
3535
pub force_unconditional_redirects: bool,
3636
pub blocked_routes: HashSet<String>,
37-
pub version_id_cache_size: usize,
37+
pub version_id_cache_size: u64,
3838
pub version_id_cache_ttl: Duration,
3939
}
4040

0 commit comments

Comments
 (0)