fix: add from error for oneshot channel

this is getting a bit overused...

Co-authored-by: zaaarf <me@zaaarf.foo>
Co-authored-by: cschen <cschen@codemp.dev>
This commit is contained in:
əlemi 2024-08-13 18:00:17 +02:00
parent 6e33339fa9
commit 8874f31eeb
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -107,6 +107,12 @@ impl From<tokio::sync::broadcast::error::RecvError> for Error {
}
}
impl From<tokio::sync::oneshot::error::RecvError> for Error {
fn from(_value: tokio::sync::oneshot::error::RecvError) -> Self {
Error::Channel { send: false }
}
}
impl From<tokio::sync::watch::error::RecvError> for Error {
fn from(_value: tokio::sync::watch::error::RecvError) -> Self {
Error::Channel { send: false }