Skip to content

Commit

Permalink
opt balancer TimeOut error message
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jan 22, 2021
1 parent c2adae9 commit bd7fcc2
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ impl PingChecker {
Err(err)
}
Err(..) => {
use std::io::{Error, ErrorKind};
use std::io::ErrorKind;

// Timeout
trace!(
Expand All @@ -491,8 +491,7 @@ impl PingChecker {
);

// NOTE: timeout exceeded. Count as error.
let err = Error::new(ErrorKind::TimedOut, "Request timed out");
Err(err)
Err(ErrorKind::TimedOut.into())
}
}
}
Expand Down

0 comments on commit bd7fcc2

Please sign in to comment.