Skip to content

Conversation

@bigmoonbit
Copy link

Abstract

Corrected the misleading comment for the getParamsAndCheckValid method in websockets.go.

The comment previously incorrectly referred to this method as "tcpGetAndSendResponse", which is actually a different method in the same file.

The updated comment now accurately describes the function's purpose: extracting and validating parameters from incoming messages.

@bigmoonbit bigmoonbit requested a review from a team as a code owner November 12, 2025 09:16
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request corrects a misleading comment for the getParamsAndCheckValid method. The new comment is a significant improvement in clarity. I have added one suggestion to make the comment even more descriptive by including the function's side effect of sending an error response upon validation failure.

@bigmoonbit bigmoonbit changed the title docs: Fix comment inconsistency in getParamsAndCheckValid method docs: fix comment inconsistency in getParamsAndCheckValid method Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant