Skip to content

refactor: qualify baseDelay in error message#9

Merged
maxence2997 merged 2 commits intomainfrom
refactor/qualify-error-messages
Mar 22, 2026
Merged

refactor: qualify baseDelay in error message#9
maxence2997 merged 2 commits intomainfrom
refactor/qualify-error-messages

Conversation

@maxence2997
Copy link
Contributor

Summary

  • autoReconnect.maxDelay must be >= baseDelayautoReconnect.maxDelay must be >= autoReconnect.baseDelay
  • Consistent with the heartbeat.pongWait qualification fix

Test plan

  • make check passes

1.Message said baseDelay without prefix → changed to autoReconnect.baseDelay
Copilot AI review requested due to automatic review settings March 22, 2026 07:48
@github-actions github-actions bot added the refactor Code restructuring without behaviour change label Mar 22, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refines a validateConfig error message in WspulseClient to fully qualify baseDelay as autoReconnect.baseDelay, aligning it with other qualified config validation messages (e.g., heartbeat fields).

Changes:

  • Update the autoReconnect.maxDelay >= autoReconnect.baseDelay validation error message to include the full field path.

1.MAX_MAX_DELAY/MAX_MAX_RETRIES hard to read → MAX_DELAY_LIMIT/MAX_RETRIES_LIMIT
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@maxence2997 maxence2997 merged commit d7f4539 into main Mar 22, 2026
11 checks passed
@maxence2997 maxence2997 deleted the refactor/qualify-error-messages branch March 22, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code restructuring without behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants