disable buffering for incremental statefile updates

This commit is contained in:
ac107458 committed 2022-04-07 17:24:52 +02:00
1 parent 1896f33c77
commit 896cd93224
1 file changed
+1 -1
+1 -1
View File
@@ -236,7 +236,7 @@ class Database:
try:
while True:
async with await trio.open_file(filename, 'ab') as sf:
async with await trio.open_file(filename, 'ab', buffering=0) as sf:
while True:
update = await rx.receive()
if isinstance(update, list):