From 5f1cbceb6b30155246fde18fe9d72f4066bc8a71 Mon Sep 17 00:00:00 2001 From: Ceyhun Onur Date: Thu, 20 Jun 2024 18:42:57 +0300 Subject: [PATCH] rpc: fix truncate comment --- rpc/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/handler.go b/rpc/handler.go index 14dbbca623..624342adcd 100644 --- a/rpc/handler.go +++ b/rpc/handler.go @@ -478,7 +478,7 @@ func (h *handler) handleCallMsg(ctx *callProc, msg *jsonrpcMessage) *jsonrpcMess logCtx = append(logCtx, "err", resp.Error.Message) if resp.Error.Data != nil { errDataStr := fmt.Sprintf("%v", resp.Error.Data) - // Truncate the error data as string if it is too long. Otherwise, preserve the original data. + // Truncate the error data if it is too long. Otherwise, preserve the original data. if len(errDataStr) > callErrorDataLogTruncateLimit { remaining := len(errDataStr) - callErrorDataLogTruncateLimit errDataStr = fmt.Sprintf("%s... (truncated remaining %d chars)", errDataStr[:callErrorDataLogTruncateLimit], remaining)