Skip to content

Commit d55d6b4

Browse files
committed
Fix
1 parent a0403f7 commit d55d6b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/batcher/src/types/errors.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ pub enum BatcherError {
6666
WsSinkEmpty,
6767
AddressNotFoundInUserStates(Address),
6868
QueueRemoveError(String),
69+
StateCorruptedAndFlushed(String),
6970
}
7071

7172
impl From<tungstenite::Error> for BatcherError {
@@ -147,6 +148,9 @@ impl fmt::Debug for BatcherError {
147148
BatcherError::QueueRemoveError(e) => {
148149
write!(f, "Error while removing entry from queue: {}", e)
149150
}
151+
BatcherError::StateCorruptedAndFlushed(reason) => {
152+
write!(f, "Batcher state was corrupted and flushed: {}", reason)
153+
}
150154
}
151155
}
152156
}

0 commit comments

Comments
 (0)