From 7503111febe6a9b8260e18c2e1c7a4e9c430163e Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 18 Mar 2021 15:21:13 +0200 Subject: [PATCH] lib/storage: small code simplification after 6cee5338b2b3d425eedc2ea88418e1eb42bb4c0c --- lib/storage/storage.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/storage/storage.go b/lib/storage/storage.go index a1aa64678..171ca92e1 100644 --- a/lib/storage/storage.go +++ b/lib/storage/storage.go @@ -16,7 +16,6 @@ import ( "time" "unsafe" - "github.com/VictoriaMetrics/VictoriaMetrics/lib/bytesutil" "github.com/VictoriaMetrics/VictoriaMetrics/lib/cgroup" "github.com/VictoriaMetrics/VictoriaMetrics/lib/encoding" "github.com/VictoriaMetrics/VictoriaMetrics/lib/fasttime" @@ -1129,7 +1128,7 @@ func (s *Storage) SearchGraphitePaths(accountID, projectID uint32, tr TimeRange, } func (s *Storage) searchGraphitePaths(accountID, projectID uint32, tr TimeRange, qHead, qTail []byte, maxPaths int, deadline uint64) ([]string, error) { - n := strings.IndexAny(bytesutil.ToUnsafeString(qTail), "*[{") + n := bytes.IndexAny(qTail, "*[{") if n < 0 { // Verify that qHead matches a metric name. qHead = append(qHead, qTail...)