mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
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:
parent
6e33339fa9
commit
8874f31eeb
1 changed files with 6 additions and 0 deletions
|
@ -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 }
|
||||
|
|
Loading…
Reference in a new issue