summaryrefslogtreecommitdiff
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
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")]