pass args by ref

This commit is contained in:
dasha_uwu
2025-09-17 14:21:55 +05:00
committed by Jason Volk
parent d6e95c51c0
commit 9c4d376bec
43 changed files with 97 additions and 101 deletions

View File

@@ -60,7 +60,7 @@ pub type CompressedStateEvent = [u8; 2 * size_of::<ShortId>()];
#[async_trait]
impl crate::Service for Service {
fn build(args: crate::Args<'_>) -> Result<Arc<Self>> {
fn build(args: &crate::Args<'_>) -> Result<Arc<Self>> {
let config = &args.server.config;
let cache_capacity =
f64::from(config.stateinfo_cache_capacity) * config.cache_capacity_modifier;