Skip to content

Commit 153a210

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eth/rpc/rpcapi/websockets.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ 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, sending an
302+
// error response on failure.
302303
func (s *websocketsServer) getParamsAndCheckValid(msg map[string]any, wsConn *wsConn) ([]any, bool) {
303304
params, ok := msg["params"].([]any)
304305
if !ok {

0 commit comments

Comments
 (0)