Skip to content

Commit fb086ed

Browse files
Fix codestyle CI from matrix-org#10440 (matrix-org#10511)
Co-authored-by: Erik Johnston <[email protected]>
1 parent 01d45fe commit fb086ed

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/10511.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allow setting transaction limit for database connections.

tests/storage/test_txn_limit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ def do_select(txn):
3232
db_pool = self.hs.get_datastores().databases[0]
3333

3434
# force txn limit to roll over at least once
35-
for i in range(0, 1001):
35+
for _ in range(0, 1001):
3636
self.get_success_or_raise(db_pool.runInteraction("test_select", do_select))

0 commit comments

Comments
 (0)