Skip to content

Commit 0ff67c5

Browse files
committedJan 29, 2025
add new connection handler with tokio channels to pool
1 parent 5c8c32f commit 0ff67c5

File tree

5 files changed

+199
-196
lines changed

5 files changed

+199
-196
lines changed
 

‎protocols/v2/roles-logic-sv2/src/errors.rs

+2
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ pub enum Error {
114114
/// JD server cannot propagate the block due to missing transactions
115115
JDSMissingTransactions,
116116
IoError(std::io::Error),
117+
Shutdown
117118
}
118119

119120
impl From<BinarySv2Error> for Error {
@@ -213,6 +214,7 @@ impl Display for Error {
213214
LogicErrorMessage(e) => write!(f, "Message is well formatted but can not be handled: {:?}", e),
214215
JDSMissingTransactions => write!(f, "JD server cannot propagate the block: missing transactions"),
215216
IoError(e) => write!(f, "IO error: {:?}", e),
217+
Shutdown => write!(f, "Shutdown incoming channel"),
216218
}
217219
}
218220
}

0 commit comments

Comments
 (0)