mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-19 11:43:43 +00:00
fix: don't bump relay error count if exiting gracefully
This commit is contained in:
parent
79d2e2ca3a
commit
7e2766ac95
@ -63,12 +63,12 @@ impl Minion {
|
||||
// Catch errors, Return nothing.
|
||||
if let Err(e) = self.handle_inner().await {
|
||||
error!("ERROR handling {}: {}", &self.url, e);
|
||||
}
|
||||
|
||||
// Bump the failure count for the relay.
|
||||
self.dbrelay.failure_count += 1;
|
||||
if let Err(e) = DbRelay::update(self.dbrelay.clone()).await {
|
||||
error!("ERROR bumping relay failure count {}: {}", &self.url, e);
|
||||
// Bump the failure count for the relay.
|
||||
self.dbrelay.failure_count += 1;
|
||||
if let Err(e) = DbRelay::update(self.dbrelay.clone()).await {
|
||||
error!("ERROR bumping relay failure count {}: {}", &self.url, e);
|
||||
}
|
||||
}
|
||||
|
||||
debug!("Minion exiting: {}", self.url);
|
||||
|
Loading…
Reference in New Issue
Block a user