From 519fc4149be44f1b4ac42d74bcb43c5fffec8fbc Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Mon, 15 Apr 2024 11:09:50 -0400 Subject: [PATCH] Update lib/sshkit/backends/connection_pool/cache.rb Co-authored-by: Matt Brictson --- lib/sshkit/backends/connection_pool/cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshkit/backends/connection_pool/cache.rb b/lib/sshkit/backends/connection_pool/cache.rb index 7cf579a2..df09a29f 100644 --- a/lib/sshkit/backends/connection_pool/cache.rb +++ b/lib/sshkit/backends/connection_pool/cache.rb @@ -36,7 +36,7 @@ def push(conn) def evict # Peek at the first connection to see if it is still fresh. If so, we can # return right away without needing to use `synchronize`. - first_expires_at, first_conn = connections.first + first_expires_at, _first_conn = connections.first return if (first_expires_at.nil? || fresh?(first_expires_at)) connections.synchronize do