Skip to content

Commit 6c686b2

Browse files
committed
docs: Fix comment inconsistency in getParamsAndCheckValid method
Signed-off-by: bigmoonbit <[email protected]>
1 parent 798b6d2 commit 6c686b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/rpc/rpcapi/websockets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func (s *websocketsServer) readLoop(wsConn *wsConn) {
298298
}
299299
}
300300

301-
// tcpGetAndSendResponse sends error response to client if params is invalid
301+
// getParamsAndCheckValid extracts and validates the params from the given message
302302
func (s *websocketsServer) getParamsAndCheckValid(msg map[string]any, wsConn *wsConn) ([]any, bool) {
303303
params, ok := msg["params"].([]any)
304304
if !ok {

0 commit comments

Comments
 (0)