You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
usage history: an update during start-up can be missed (read before subscribe) #60
Found in review of #52 (settings lens, round 2): #52 (comment). Left in fix round 2; there is now a code comment at the spot.
What: at start-up, UsageReadingsHistory.ts (around lines 675-677) reads the current state first and only then subscribes to updates. An update that arrives between the read and the subscription is never recorded.
Effect: one usage reading can go missing at start-up. The next refresh records it again, so the pacer sees the account as unknown for a while; it is never treated as free.
Fix: subscribe first, then read (and drop duplicates), with a test that sends an update between the two steps.
Activity
fix(server): usage history misses no update during start-up (#60)
fix(server): usage history misses no update during start-up (#60) (#272)
usage history: start-up drain replay not stored as a full read; test …
fix(server): usage history misses no update during start-up (#60) (#272)
usage history: start-up drain replay not stored as a full read; test …
fix(server): usage history misses no update during start-up (#60) (#272)
usage history: start-up drain replay not stored as a full read; test …
fix(server): usage history misses no update during start-up (#60) (#272)
usage history: start-up drain replay not stored as a full read; test …