Skip to content

Commit b1ef680

Browse files
committed
Properly populate cache during SingleFileStorage._at_once
The call to `list` was never awaited and the stream never drained, so the cache remained empty.
1 parent 85ae339 commit b1ef680

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vdirsyncer/storage/singlefile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ def _write(self):
193193

194194
@contextlib.asynccontextmanager
195195
async def at_once(self):
196-
self.list()
196+
async for _ in self.list():
197+
pass
197198
self._at_once = True
198199
try:
199200
yield self

0 commit comments

Comments
 (0)