Commit 478b82b
committed
Ensure component data is stale after receiving a timer event
Because of the nature of async, it might happen that data is slightly
delayed, so a timer event gets triggered, but component data arrives
before the timer event arrives, and in such cases, we end up going
into a bad state.
This issue is resolved in this PR, by checking that the component data
is actually late, every time a timer triggers.
Signed-off-by: Sahas Subramanian <[email protected]>1 parent 82d5834 commit 478b82b
File tree
1 file changed
+16
-0
lines changed- src/frequenz/sdk/actor/power_distributing
1 file changed
+16
-0
lines changedLines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
342 | 350 | | |
343 | 351 | | |
344 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
345 | 361 | | |
346 | 362 | | |
347 | 363 | | |
| |||
0 commit comments