mirror of
https://github.com/postgresml/pgcat.git
synced 2026-03-27 18:56:30 +00:00
clippy
This commit is contained in:
@@ -1111,8 +1111,7 @@ where
|
|||||||
err
|
err
|
||||||
);
|
);
|
||||||
checkout_failure_count += 1;
|
checkout_failure_count += 1;
|
||||||
match pool.settings.checkout_failure_limit {
|
if let Some(limit) = pool.settings.checkout_failure_limit {
|
||||||
Some(limit) => {
|
|
||||||
if checkout_failure_count >= limit {
|
if checkout_failure_count >= limit {
|
||||||
error!("Checkout failure limit reached ({} / {}) - disconnecting client", checkout_failure_count, limit);
|
error!("Checkout failure limit reached ({} / {}) - disconnecting client", checkout_failure_count, limit);
|
||||||
error_response_terminal(
|
error_response_terminal(
|
||||||
@@ -1127,8 +1126,6 @@ where
|
|||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
None => (),
|
|
||||||
}
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user