Skip to content

Commit e3430b2

Browse files
authored
Label the connection with the repo name (#698)
See elixir-ecto/db_connection#332
1 parent fc383ff commit e3430b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ecto/adapters/sql.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ defmodule Ecto.Adapters.SQL do
895895
{name, config} = Keyword.pop(config, :name, config[:repo])
896896
{pool_count, config} = Keyword.pop(config, :pool_count, 1)
897897
{pool, config} = pool_config(config)
898-
child_spec = connection.child_spec(config)
898+
child_spec = connection.child_spec([label: name] ++ config)
899899

900900
meta = %{
901901
telemetry: telemetry,

0 commit comments

Comments
 (0)