Add semaphore to limit RAM used by buffered outgoing requests

This commit is contained in:
Alex Auvolat
2021-11-03 17:00:40 +01:00
parent 8c4f418fe8
commit 6f13d083ab
3 changed files with 34 additions and 7 deletions
+3
View File
@@ -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),