mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
Fix inferred type when there is a single concrete connection type
This commit is contained in:
parent
9370f5784b
commit
ce757c10eb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue