Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Websocket hanging watchdog #106

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Websocket hanging watchdog #106

merged 2 commits into from
Sep 16, 2024

Conversation

khssnv
Copy link
Member

@khssnv khssnv commented Sep 16, 2024

No description provided.

// Watchdog for the websocket. It silently hangs sometimes with no error nor new events. In
// all Cere blockchain runtimes we have `pallet-timestamp` which makes at least one event
// (System.ExtrinsicSuccess for the timestamp.set extrinsic) per block.
case <-time.After(60 * time.Second):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be either move to constant or make it configurable in client creation method and set it as a default (still in constant)?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, I made it a constant.

@khssnv khssnv merged commit 0dcc558 into master Sep 16, 2024
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants