Skip to content

Commit fb72dc8

Browse files
authored
Store repo in pool options (#361)
Useful as options are emitted in DBConnection's telemetry events. This change allows one to correlate these telemetry events with the pool owner repo.
1 parent 60c4693 commit fb72dc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ecto/adapters/sql.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ defmodule Ecto.Adapters.SQL do
581581
end
582582

583583
@pool_opts [:timeout, :pool, :pool_size] ++
584-
[:queue_target, :queue_interval, :ownership_timeout]
584+
[:queue_target, :queue_interval, :ownership_timeout, :repo]
585585

586586
@doc false
587587
def init(connection, driver, config) do

0 commit comments

Comments
 (0)