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/util/error.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/util/error.rs')
-rw-r--r-- | src/util/error.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/error.rs b/src/util/error.rs index 626958da..ff03d05b 100644 --- a/src/util/error.rs +++ b/src/util/error.rs @@ -41,6 +41,9 @@ pub enum Error { #[error(display = "Tokio join error: {}", _0)] TokioJoin(#[error(source)] tokio::task::JoinError), + #[error(display = "Tokio semaphore acquire error: {}", _0)] + TokioSemAcquire(#[error(source)] tokio::sync::AcquireError), + #[error(display = "Remote error: {}", _0)] RemoteError(String), |