Skip to content

Commit 900b3e0

Browse files
committed
config: Fix version_id_cache_size type
1 parent e6210ba commit 900b3e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)