From 153a210247613f366ba1547b72b4a6def0adcac2 Mon Sep 17 00:00:00 2001 From: bigmoonbit Date: Wed, 12 Nov 2025 17:15:51 +0800 Subject: [PATCH] docs: Fix comment inconsistency in getParamsAndCheckValid method Signed-off-by: bigmoonbit --- eth/rpc/rpcapi/websockets.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eth/rpc/rpcapi/websockets.go b/eth/rpc/rpcapi/websockets.go index c311e1354c..562cc59ed3 100644 --- a/eth/rpc/rpcapi/websockets.go +++ b/eth/rpc/rpcapi/websockets.go @@ -298,7 +298,8 @@ func (s *websocketsServer) readLoop(wsConn *wsConn) { } } -// tcpGetAndSendResponse sends error response to client if params is invalid +// getParamsAndCheckValid extracts and validates the params from the given message, sending an +// error response on failure. func (s *websocketsServer) getParamsAndCheckValid(msg map[string]any, wsConn *wsConn) ([]any, bool) { params, ok := msg["params"].([]any) if !ok {