From 6ab6faaca0b7c3bc6ac326d61807fd31e90ea2cc Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Thu, 18 May 2023 15:07:29 -0400 Subject: [PATCH] Add missing parenthesis --- http/service.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/service.go b/http/service.go index e4c66cc0..b59eccda 100644 --- a/http/service.go +++ b/http/service.go @@ -1437,7 +1437,7 @@ func (s *Service) handleQuery(w http.ResponseWriter, r *http.Request) { http.Error(w, err.Error(), http.StatusBadRequest) return } - stats.Add(numQueryStmtsRx, int64(len(queries)) + stats.Add(numQueryStmtsRx, int64(len(queries))) // No point rewriting queries if they don't go through the Raft log, since they // will never be replayed from the log anyway. @@ -1539,7 +1539,7 @@ func (s *Service) handleRequest(w http.ResponseWriter, r *http.Request) { http.Error(w, err.Error(), http.StatusBadRequest) return } - stats.Add(numRequestStmtsRx, int64(len(stmts)) + stats.Add(numRequestStmtsRx, int64(len(stmts))) if err := command.Rewrite(stmts, noRewriteRandom); err != nil { http.Error(w, fmt.Sprintf("SQL rewrite: %s", err.Error()), http.StatusInternalServerError)