mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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
|
@contextlib.asynccontextmanager
|
||||||
async def at_once(self):
|
async def at_once(self):
|
||||||
self.list()
|
async for _ in self.list():
|
||||||
|
pass
|
||||||
self._at_once = True
|
self._at_once = True
|
||||||
try:
|
try:
|
||||||
yield self
|
yield self
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue