mirror of
https://github.com/telemt/telemt.git
synced 2026-04-15 01:24:09 +03:00
RPC Proxy-req fixes
Co-Authored-By: brekotis <93345790+brekotis@users.noreply.github.com>
This commit is contained in:
@@ -171,6 +171,9 @@ async fn rpc_proxy_req_signal_loop(
|
||||
rpc_proxy_req_every_secs: u64,
|
||||
) {
|
||||
if rpc_proxy_req_every_secs == 0 {
|
||||
// Disabled service signal loop must stay parked until writer cancellation.
|
||||
// Returning immediately here would complete `select!` and tear down writer lifecycle.
|
||||
cancel_signal.cancelled().await;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ async fn make_pool() -> Arc<MePool> {
|
||||
NetworkDecision::default(),
|
||||
None,
|
||||
Arc::new(SecureRandom::new()),
|
||||
Arc::new(Stats::default()),
|
||||
Arc::new(Stats::new()),
|
||||
general.me_keepalive_enabled,
|
||||
general.me_keepalive_interval_secs,
|
||||
general.me_keepalive_jitter_secs,
|
||||
|
||||
Reference in New Issue
Block a user