Skip to content

Commit

Permalink
Update lib/sshkit/backends/connection_pool/cache.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Brictson <[email protected]>
  • Loading branch information
djmb and mattbrictson authored Apr 15, 2024
1 parent 552648e commit 519fc41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sshkit/backends/connection_pool/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 519fc41

Please sign in to comment.