Fix inferred type when there is a single concrete connection type

This commit is contained in:
Brian J. Cardiff 2023-06-20 21:34:26 -03:00
parent 9370f5784b
commit ce757c10eb

View file

@ -46,7 +46,7 @@ module DB
@connection_options = connection_options
@setup_connection = ->(conn : Connection) {}
@pool = uninitialized Pool(Connection) # in order to use self in the factory proc
@pool = Pool.new(pool_options) {
@pool = Pool(Connection).new(pool_options) {
conn = factory.call
conn.auto_release = false
conn.context = self