disable buffering for incremental statefile updates
This commit is contained in:
parent
1896f33c77
commit
896cd93224
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user