diff options
Diffstat (limited to 'kvmd/aiofs.py')
-rw-r--r-- | kvmd/aiofs.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kvmd/aiofs.py b/kvmd/aiofs.py index a95e972f..c1b74366 100644 --- a/kvmd/aiofs.py +++ b/kvmd/aiofs.py @@ -34,7 +34,6 @@ async def read(path: str) -> str: return (await afile.read()) -async def afile_write_now(afile: aiofiles.base.AiofilesContextManager, data: bytes) -> None: - await afile.write(data) # type: ignore +async def afile_sync(afile: aiofiles.base.AiofilesContextManager) -> None: await afile.flush() # type: ignore await aiotools.run_async(os.fsync, afile.fileno()) # type: ignore |