status-im / status-go

The Status module that consumes go-ethereum
https://status.im
Mozilla Public License 2.0
728 stars 246 forks source link

fix_: force process online/offline state hanlding after computer back from sleep #5422

Closed plopezlpz closed 3 months ago

plopezlpz commented 3 months ago

When computer lid is closed or the computer is in sleep state, the go routines are paused, so we don't get any indication that for a long period we were actually offline. With this PR if the computer is back from sleep, it will call the online/offline state handler to request messages to store node.

status-im-auto commented 3 months ago

Jenkins Builds

Click to see older builds (4) | :grey_question: | Commit | :hash: | Finished (UTC) | Duration | Platform | Result | |-|-|-|-|-|-|-| | :heavy_check_mark: | 0fa563cab7d0cee3acace19f28510edc3a472cb6 | [#1](https://ci.status.im/job/status-go/job/prs/job/linux/job/PR-5422/1/) | 2024-06-25 13:16:26 | ~4 min | `linux` | [:package:`zip`](https://status-im-prs.ams3.cdn.digitaloceanspaces.com/status-go-desktop-240625-131222-0fa563cab7d0cee3acace19f28510edc3a472cb6-pr5422.zip) | | :heavy_check_mark: | 0fa563cab7d0cee3acace19f28510edc3a472cb6 | [#1](https://ci.status.im/job/status-go/job/prs/job/ios/job/PR-5422/1/) | 2024-06-25 13:16:33 | ~4 min | `ios` | [:package:`zip`](https://status-im-prs.ams3.cdn.digitaloceanspaces.com/status-go-ios-240625-131217-0fa563cab7d0cee3acace19f28510edc3a472cb6-pr5422.zip) | | :heavy_check_mark: | 0fa563cab7d0cee3acace19f28510edc3a472cb6 | [#1](https://ci.status.im/job/status-go/job/prs/job/android/job/PR-5422/1/) | 2024-06-25 13:17:52 | ~5 min | `android` | [:package:`aar`](https://status-im-prs.ams3.cdn.digitaloceanspaces.com/status-go-android-240625-131217-0fa563cab7d0cee3acace19f28510edc3a472cb6-pr5422.aar) | | | | | | | | | | :heavy_check_mark: | 0fa563ca | [#1](https://ci.status.im/job/status-go/job/prs/job/tests/job/PR-5422/1/) | 2024-06-25 13:55:22 | ~43 min | `tests` | [:page_facing_up:`log`](https://ci.status.im/job/status-go/job/prs/job/tests/job/PR-5422/1//consoleText) |
:grey_question: Commit :hash: Finished (UTC) Duration Platform Result
:heavy_check_mark: 4b1ebae6bafe86f12e02f362e161693463e2c67d #2 2024-06-26 12:08:07 ~2 min ios :package:zip
:heavy_check_mark: 4b1ebae6bafe86f12e02f362e161693463e2c67d #2 2024-06-26 12:11:27 ~6 min android :package:aar
:heavy_check_mark: 4b1ebae6bafe86f12e02f362e161693463e2c67d #2 2024-06-26 12:11:57 ~6 min linux :package:zip
:heavy_check_mark: 4b1ebae6 #2 2024-06-26 12:54:03 ~48 min tests :page_facing_up:log