Skip to content

Commit 13bd804

Browse files
authored
Tiny refactor (#1058)
1 parent 6860f90 commit 13bd804

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/neo4j/_async/io/_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,5 +962,5 @@ async def on_write_failure(self, address, database):
962962
async with self.refresh_lock:
963963
table = self.routing_tables.get(database)
964964
if table is not None:
965-
self.routing_tables[database].writers.discard(address)
965+
table.writers.discard(address)
966966
log.debug("[#0000] _: <POOL> table=%r", self.routing_tables)

src/neo4j/_sync/io/_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,5 +959,5 @@ def on_write_failure(self, address, database):
959959
with self.refresh_lock:
960960
table = self.routing_tables.get(database)
961961
if table is not None:
962-
self.routing_tables[database].writers.discard(address)
962+
table.writers.discard(address)
963963
log.debug("[#0000] _: <POOL> table=%r", self.routing_tables)

0 commit comments

Comments
 (0)