From 6709a63f9dab498feac4a38dcf2d21c9fec3ae91 Mon Sep 17 00:00:00 2001 From: Vitalii Gridnev Date: Thu, 21 Sep 2023 00:08:43 +0300 Subject: [PATCH] Update pool.py --- ydb/aio/pool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ydb/aio/pool.py b/ydb/aio/pool.py index 6e95dd6f..fd4e8016 100644 --- a/ydb/aio/pool.py +++ b/ydb/aio/pool.py @@ -34,7 +34,7 @@ async def get(self, preferred_endpoint=None, fast_fail=False, wait_timeout=10): return self.connections_by_node_id[preferred_endpoint.node_id] if preferred_endpoint is not None and preferred_endpoint.endpoint in self.connections: - return self.connections[preferred_endpoint] + return self.connections[preferred_endpoint.endpoint] for conn_lst in self.conn_lst_order: try: