mirror of
https://gitea.invidious.io/iv-org/shard-crystal-db.git
synced 2024-08-15 00:53:32 +00:00
minor code cleanup
This commit is contained in:
parent
75aa821f5f
commit
09b3b4bc01
1 changed files with 1 additions and 2 deletions
|
@ -27,8 +27,7 @@ module DB
|
||||||
|
|
||||||
# :nodoc:
|
# :nodoc:
|
||||||
def initialize(@driver : Driver, @uri : URI)
|
def initialize(@driver : Driver, @uri : URI)
|
||||||
# TODO: PR HTTP::Params.new -> HTTP::Params.new(Hash(String, Array(String)).new)
|
params = HTTP::Params.parse(uri.query || "")
|
||||||
params = (query = uri.query) ? HTTP::Params.parse(query) : HTTP::Params.new(Hash(String, Array(String)).new)
|
|
||||||
pool_options = @driver.connection_pool_options(params)
|
pool_options = @driver.connection_pool_options(params)
|
||||||
|
|
||||||
@setup_connection = ->(conn : Connection) {}
|
@setup_connection = ->(conn : Connection) {}
|
||||||
|
|
Loading…
Reference in a new issue