From 896cd93224e50af099866f0bed07cad2ab852c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Thu, 7 Apr 2022 17:24:52 +0200 Subject: [PATCH] disable buffering for incremental statefile updates --- src/capport/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/capport/database.py b/src/capport/database.py index d4195be..ea62c9a 100644 --- a/src/capport/database.py +++ b/src/capport/database.py @@ -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):