Handle tokio channel errors

This commit is contained in:
Mike Dilger committed 2024-02-17 09:53:47 +13:00
1 parent 52b449b6c7
commit fc35600e86
1 file changed
+8
+8
View File
@@ -11,6 +11,14 @@ pub enum Error {
#[error("Output buffer too small")]
BufferTooSmall,
// Channel Recv
#[error("Channel receive: {0}")]
ChannelRecv(#[from] tokio::sync::broadcast::error::RecvError),
// Channel Send
#[error("Channel send: {0}")]
ChannelSend(#[from] tokio::sync::broadcast::error::SendError<usize>),
// Config
#[error("Config: {0}")]
Config(#[from] ron::error::SpannedError),