diff options
author | Alex Auvolat <alex@adnab.me> | 2020-04-11 18:51:11 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-04-11 18:51:11 +0200 |
commit | 53289b69e5037700689665b4edf20f2382ff15f6 (patch) | |
tree | e9920e1dce29e94bfddc3812b44ee2519ba14bed /src/error.rs | |
parent | 4a2624b76afff714a70ee7a9e4ffd97c54c7ecc4 (diff) | |
download | garage-53289b69e5037700689665b4edf20f2382ff15f6.tar.gz garage-53289b69e5037700689665b4edf20f2382ff15f6.zip |
Background task runner that replaces tokio::spawn
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 5eb5a960..7a116954 100644 --- a/src/error.rs +++ b/src/error.rs @@ -63,3 +63,9 @@ impl From<sled::TransactionError<Error>> for Error { } } } + +impl<T> From<tokio::sync::watch::error::SendError<T>> for Error { + fn from(_e: tokio::sync::watch::error::SendError<T>) -> Error { + Error::Message(format!("Watch send error")) + } +} |