Retry send errors in passive task
This commit is contained in:
1 file changed
+4
-1
@@ -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::*;
|
||||
|
||||
Reference in new issue
Block a user