Skip to content

Commit 2e01d95

Browse files
authored
Update lib/ecto/adapters/sql.ex
1 parent 645ec64 commit 2e01d95

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/ecto/adapters/sql.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -890,10 +890,7 @@ defmodule Ecto.Adapters.SQL do
890890
{name, config} = Keyword.pop(config, :name, config[:repo])
891891
{pool_count, config} = Keyword.pop(config, :pool_count, 1)
892892
{pool, config} = pool_config(config)
893-
894-
connection_config = Keyword.put(config, :label, name)
895-
896-
child_spec = connection.child_spec(connection_config)
893+
child_spec = connection.child_spec([label: name] ++ config)
897894

898895
meta = %{
899896
telemetry: telemetry,

0 commit comments

Comments
 (0)