Skip to content

Commit 3cbf09d

Browse files
KaboomFoxclaude
andcommitted
Revert: Keep data timeout for all shards
The reconnection overhead on low-activity shards is minimal and not worth special-casing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a2159ea commit 3cbf09d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/connection.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,8 @@ impl<H: WebSocketHandler> Connection<H> {
490490
}
491491
}
492492

493-
// Check data timeout (skip for shards with few subscriptions - they may have low-activity tokens)
494-
// Shards with < 50 subscriptions are exempt since inactive markets may not send data
495-
if health.is_data_timeout() && state.subscription_count >= 50 {
493+
// Check data timeout
494+
if health.is_data_timeout() {
496495
self.metrics.record_health_failure();
497496

498497
// Request hot switchover if channel available, otherwise regular reconnect

0 commit comments

Comments
 (0)