Skip to content

Commit 6bb5bbf

Browse files
authored
Fix sleep bug in MovingWindow example (frequenz-floss#420)
2 parents 5f11abb + 9c890ae commit 6bb5bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frequenz/sdk/timeseries/_moving_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ async def run() -> None:
118118
)
119119
120120
# wait for one full day until the buffer is filled
121-
asyncio.sleep(60*60*24)
121+
await asyncio.sleep(60*60*24)
122122
123123
# create a polars series with one full day of data
124124
time_start = datetime(2023, 1, 1, tzinfo=timezone.utc)

0 commit comments

Comments
 (0)