diff options
author | Devaev Maxim <[email protected]> | 2021-05-26 12:26:31 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-05-26 12:26:31 +0300 |
commit | e4806297242c69fab8967b7e1d2d1a81dd17d744 (patch) | |
tree | ae61f672848a5e3289c6d75371b71c01e2bc1722 /kvmd/aiofs.py | |
parent | 5da412ae7cad952c58e5190aaabed39afd3cdb66 (diff) |
speed up msd
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 |