Closed dydxwill closed 3 months ago
The recent modification in config.ts
specifies default values for WS_HEARTBEAT_INTERVAL_MS
and WS_HEARTBEAT_TIMEOUT_MS
. By setting these to 30,000 and 10,000 milliseconds respectively, it ensures more predictable and consistent WebSocket behavior, potentially decreasing downtime and improving overall reliability.
Files | Change Summary |
---|---|
indexer/services/socks/src/config.ts |
Changed default values for WS_HEARTBEAT_INTERVAL_MS and WS_HEARTBEAT_TIMEOUT_MS to 30,000 and 10,000 milliseconds, respectively. |
In config's realm, a change took hold,
Heartbeats steady, strong and bold.
Thirty thousand beats, intervals set high,
Ten thousand timeouts, swift to comply.
In webs and sockets, it brings delight,
As Rabbit hops through code so bright!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Changelist
Set heartbeat defaults Currently, it's taken from https://github.com/dydxprotocol/v4-chain/blob/3ee5be004a3dcb407a1a741c53b3ce990b67f99c/indexer/services/socks/.env#L3 which is a bit confusing in prod
Test Plan
[Describe how this PR was tested (if applicable)]
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit