From 6adcc99c6f098449d3caad3cc7accabcb6652be4 Mon Sep 17 00:00:00 2001 From: Stas Date: Wed, 8 Jan 2025 16:07:36 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/supavisor/client_handler.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/supavisor/client_handler.ex b/lib/supavisor/client_handler.ex index d5ec594c..65d7a45e 100644 --- a/lib/supavisor/client_handler.ex +++ b/lib/supavisor/client_handler.ex @@ -400,7 +400,7 @@ defmodule Supavisor.ClientHandler do db_pid = db_checkout(:both, :on_connect, data) data = %{data | manager: manager_ref, db_pid: db_pid, idle_timeout: opts.idle_timeout} - Registry.register(@clients_registry, id, []) + Registry.register(@clients_registry, data.id, []) next = if opts.ps == [], @@ -437,7 +437,7 @@ defmodule Supavisor.ClientHandler do }) Logger.metadata(proxy: true) - Registry.register(@proxy_clients_registry, id, []) + Registry.register(@proxy_clients_registry, data.id, []) {:keep_state, %{data | auth: auth}, {:next_event, :internal, :connect_db}}