Retry send errors in passive task

This commit is contained in:
QuantumEntangledAndy committed 2023-10-26 13:33:01 +07:00
1 parent 4cbf8d22dd
commit 71dc655673
1 file changed
+4 -1
+4 -1
View File
@@ -146,11 +146,14 @@ impl NeoInstance {
// If error we check for retryable errors
Err(e) => {
match e.downcast::<neolink_core::Error>() {
// Retry is a None
Ok(neolink_core::Error::DroppedConnection) | Ok(neolink_core::Error::TimeoutDisconnected) => {
log::debug!(" - Neolink error continue");
continue;
},
Ok(neolink_core::Error::TokioBcSendError) => {
log::debug!(" - Neolink Send Error continue");
continue;
},
Ok(neolink_core::Error::Io(e)) => {
log::debug!(" - Neolink Std IO Error");
use std::io::ErrorKind::*;