feat: Make max_active_txns actually configurable

This commit is contained in:
nexy7574
2026-02-23 16:36:45 +00:00
committed by timedout
parent fcd49b7ab3
commit dd70094719
4 changed files with 24 additions and 6 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ impl crate::Service for Service {
},
servername_txnid_response_cache: Arc::new(SyncRwLock::new(HashMap::new())),
servername_txnid_active: Arc::new(SyncRwLock::new(HashMap::new())),
max_active_txns: 50, // TODO: fetch from config
max_active_txns: args.depend::<crate::config::Service>("config").max_concurrent_inbound_transactions
}))
}