Skip to content

Commit

Permalink
[ci skip] Update documents of ConnectionHandler
Browse files Browse the repository at this point in the history
[ci skip] Update documents of `ConnectionHandler`
  • Loading branch information
vipulnsward committed May 11, 2016
2 parents b185db5 + 64634ce commit 525fa7e
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -826,9 +826,7 @@ def checkout_and_verify(c)
# in order to lookup the correct connection pool.
class ConnectionHandler
def initialize
# These caches are keyed by klass.name, NOT klass. Keying them by klass
# alone would lead to memory leaks in development mode as all previous
# instances of the class would stay in memory.
# These caches are keyed by spec.name (ConnectionSpecification#name).
@owner_to_pool = Concurrent::Map.new(:initial_capacity => 2) do |h,k|
h[k] = Concurrent::Map.new(:initial_capacity => 2)
end
Expand Down

0 comments on commit 525fa7e

Please sign in to comment.