app/vmselect/netstorage: typo fix

This commit is contained in:
Aliaksandr Valialkin 2020-11-16 15:54:40 +02:00
parent 59fb75717e
commit f7f866d83b

View File

@ -2201,7 +2201,7 @@ func (sn *storageNode) processSearchMetricNamesOnConn(bc *handshake.BufferedConn
if err != nil { if err != nil {
return nil, fmt.Errorf("cannot read metricNamesCount: %w", err) return nil, fmt.Errorf("cannot read metricNamesCount: %w", err)
} }
metricNames := make([][]byte, 0, metricNamesCount) metricNames := make([][]byte, metricNamesCount)
for i := int64(0); i < int64(metricNamesCount); i++ { for i := int64(0); i < int64(metricNamesCount); i++ {
buf, err = readBytes(buf[:0], bc, maxMetricNameSize) buf, err = readBytes(buf[:0], bc, maxMetricNameSize)
if err != nil { if err != nil {