-
Notifications
You must be signed in to change notification settings - Fork 9
[WIP] add connection pool class #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
lib/ok_hbase/pool.rb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to use a symbol name like :ok_hbase_connection, just in case something else like ActiveRecord uses a symbol called :current_connection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call
Refactor: connection -> with_connection _acquire_connection -> get_connection _return_connection -> return_connection
No description provided.