From 49490ae5a7aae9190ab5f76086e86116eb1820e6 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin <valyala@gmail.com> Date: Thu, 27 May 2021 12:08:47 +0300 Subject: [PATCH] lib/protoparser/clusternative: remove duplicate `cannot read packet size` phrase from the log message Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/1336 --- lib/protoparser/clusternative/streamparser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/protoparser/clusternative/streamparser.go b/lib/protoparser/clusternative/streamparser.go index 0a75ffb48d..79e73c373f 100644 --- a/lib/protoparser/clusternative/streamparser.go +++ b/lib/protoparser/clusternative/streamparser.go @@ -50,7 +50,7 @@ func ParseStream(bc *handshake.BufferedConn, callback func(rows []storage.Metric putUnmarshalWork(uw) return nil } - return fmt.Errorf("cannot read packet size: %w", err) + return err } blocksRead.Inc() wg.Add(1)