Skip to content

Commit 8938db2

Browse files
authored
Merge pull request #353 from gridnevvvit/gridnevvvit-patch-1 Fixed access to connection if connection cannot be found by node id
2 parents f90cbcc + 6709a63 commit 8938db2

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.5.1 ##
2+
* Fixed access to connection if connection cannot be found by node id
3+
14
## 3.5.0 ##
25
* Added functions for check column table type table of any type of scheme entry
36

ydb/aio/pool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def get(self, preferred_endpoint=None, fast_fail=False, wait_timeout=10):
3434
return self.connections_by_node_id[preferred_endpoint.node_id]
3535

3636
if preferred_endpoint is not None and preferred_endpoint.endpoint in self.connections:
37-
return self.connections[preferred_endpoint]
37+
return self.connections[preferred_endpoint.endpoint]
3838

3939
for conn_lst in self.conn_lst_order:
4040
try:

ydb/pool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def get(self, preferred_endpoint=None) -> Connection:
129129
return self.connections_by_node_id[preferred_endpoint.node_id]
130130

131131
if preferred_endpoint is not None and preferred_endpoint.endpoint in self.connections:
132-
return self.connections[preferred_endpoint]
132+
return self.connections[preferred_endpoint.endpoint]
133133

134134
for conn_lst in self.conn_lst_order:
135135
try:

0 commit comments

Comments
 (0)