Something went wrong. Try again.
forked from tangled.org/core
Something went wrong. Try again.
jetstream: fix reconnect logic and last time_us saving master
Reconnection is now handed by cancelling the connCtx context. This is a lot cleaner and the jetstream client package honors context cancellation. Saving of last time_us is also simplified now. We only save (update, rather) after the last seen event by incrementing the event's time_us by 1 (this is ok since it's a monotonic clock). We pick up from here upon reconnect and don't save last time_us for any other reason. Lastly, outside of first boot, we should only ever use UpdateLastTimeUs.
Author Anirudh Oppiliappan Date (Feb 18, 2025, 1:54 PM UTC) Commit d24ea31c d24ea31c41c02f8296011721d816da12bbd1819f Parent ea7f167a ea7f167a8f36281d690248611ad86cf8ce0fdd6b