mirror of
https://github.com/mperham/connection_pool
synced 2023-03-27 23:22:21 -04:00
commit
74ce90a770
2 changed files with 3 additions and 1 deletions
|
@ -26,6 +26,8 @@ require 'connection_pool/timed_queue'
|
|||
class ConnectionPool
|
||||
DEFAULTS = { :size => 5, :timeout => 5 }
|
||||
|
||||
undef :type if defined?(type)
|
||||
|
||||
def initialize(options={})
|
||||
raise ArgumentError, 'Connection pool requires a block' unless block_given?
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module ConnectionPool
|
||||
class ConnectionPool
|
||||
VERSION = "0.0.3"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue