From 6f13d083ab188060d2a2dc5f619070a445fe61ba Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Wed, 3 Nov 2021 17:00:40 +0100 Subject: Add semaphore to limit RAM used by buffered outgoing requests --- src/util/error.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/util') 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), -- cgit v1.2.3