From 290015957bcff52df9c8fde22673567bc2620a3f Mon Sep 17 00:00:00 2001 From: Lev Kokotov Date: Sun, 6 Feb 2022 12:52:59 -0800 Subject: [PATCH] nuance --- src/pool.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pool.rs b/src/pool.rs index 5515267..2a54d55 100644 --- a/src/pool.rs +++ b/src/pool.rs @@ -157,7 +157,7 @@ impl ConnectionPool { // Everything is banned, nothig is banned if guard[shard].len() == self.databases[shard].len() { - guard.clear(); + guard[shard].clear(); drop(guard); println!(">> Unbanning all replicas."); return false;