2
0

disable buffering for incremental statefile updates

This commit is contained in:
Stefan Bühler 2022-04-07 17:24:52 +02:00
parent 1896f33c77
commit 896cd93224

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):