Skip to content

Commit 9c890ae

Browse files
committed
Fix sleep bug in MovingWindow example
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent ef3906f commit 9c890ae

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)