diff options
author | Alex Auvolat <alex@adnab.me> | 2021-11-03 17:00:40 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-11-03 18:02:57 +0100 |
commit | 6f13d083ab188060d2a2dc5f619070a445fe61ba (patch) | |
tree | e83a9b53b61d90086c519a8ae9d8f0fffa750e0f /src/rpc/system.rs | |
parent | 8c4f418fe889106758a086b34688f7c3b378ca64 (diff) | |
download | garage-6f13d083ab188060d2a2dc5f619070a445fe61ba.tar.gz garage-6f13d083ab188060d2a2dc5f619070a445fe61ba.zip |
Add semaphore to limit RAM used by buffered outgoing requestsrequest-buffer-semaphore
Diffstat (limited to 'src/rpc/system.rs')
-rw-r--r-- | src/rpc/system.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs index 8f5a1ec5..a518ef21 100644 --- a/src/rpc/system.rs +++ b/src/rpc/system.rs @@ -235,10 +235,7 @@ impl System { node_status: RwLock::new(HashMap::new()), netapp: netapp.clone(), fullmesh: fullmesh.clone(), - rpc: RpcHelper { - fullmesh, - background: background.clone(), - }, + rpc: RpcHelper::new(fullmesh, background.clone()), system_endpoint, replication_factor, rpc_listen_addr: config.rpc_bind_addr, |