mperham / connection_pool

Generic connection pooling for Ruby
MIT License
1.63k stars 143 forks source link

Remove `@key_count` from the thread when returning the connection to … #135

Closed johndbritton closed 3 years ago

johndbritton commented 3 years ago

When checking in the last reference to a connection from a specific thread, the @key_count variable is left lingering on the thread with a value of 1.

It doesn't cause a bug, but it pollutes the namespace with data that is unused and incorrect.

cc/ @audthecodewitch

mperham commented 3 years ago

thanks!