diff options
author | metamuffin <metamuffin@disroot.org> | 2023-08-28 15:02:14 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-08-28 15:02:14 +0200 |
commit | 186bf476aeab0ff0838d1ae26a9dbcb2e40a8eb5 (patch) | |
tree | 384ed6e8faaacd77b1a5f4f11a251ee228f1e927 /src/error.rs | |
parent | 2bc557bbddb01b535dd8512fe3aadb0d4091a42d (diff) | |
download | gnix-186bf476aeab0ff0838d1ae26a9dbcb2e40a8eb5.tar gnix-186bf476aeab0ff0838d1ae26a9dbcb2e40a8eb5.tar.bz2 gnix-186bf476aeab0ff0838d1ae26a9dbcb2e40a8eb5.tar.zst |
what i invented here already existed: semaphore
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs index bf775d1..5aae6d8 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,7 +1,9 @@ +use tokio::sync::TryAcquireError; + #[derive(Debug, thiserror::Error)] pub enum ServiceError { #[error("limit reached. try again")] - Limit, + Limit(#[from] TryAcquireError), #[error("hyper error")] Hyper(hyper::Error), #[error("unknown host")] |