mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Properly populate cache during SingleFileStorage._at_once
The call to `list` was never awaited and the stream never drained, so the cache remained empty.
This commit is contained in:
parent
85ae33955f
commit
b1ef68089b
1 changed files with 2 additions and 1 deletions
|
|
@ -193,7 +193,8 @@ class SingleFileStorage(Storage):
|
|||
|
||||
@contextlib.asynccontextmanager
|
||||
async def at_once(self):
|
||||
self.list()
|
||||
async for _ in self.list():
|
||||
pass
|
||||
self._at_once = True
|
||||
try:
|
||||
yield self
|
||||
|
|
|
|||
Loading…
Reference in a new issue