From e6ed92529b7bdda80f1fc0028da4120ca1a9803b Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 21 Jun 2022 20:23:30 +0300 Subject: [PATCH] all: remove explicit "xxhash" name when importing github.com/cespare/xxhash/v2 package This package already has the same name, so there is no need in explicit name --- app/vmagent/remotewrite/remotewrite.go | 2 +- app/vmselect/promql/aggr.go | 2 +- lib/blockcache/blockcache.go | 2 +- lib/lrucache/lrucache.go | 2 +- lib/promauth/config.go | 2 +- lib/promrelabel/relabel.go | 2 +- lib/promscrape/config.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/vmagent/remotewrite/remotewrite.go b/app/vmagent/remotewrite/remotewrite.go index e810bd2ed..ff77572df 100644 --- a/app/vmagent/remotewrite/remotewrite.go +++ b/app/vmagent/remotewrite/remotewrite.go @@ -22,7 +22,7 @@ import ( "github.com/VictoriaMetrics/VictoriaMetrics/lib/promrelabel" "github.com/VictoriaMetrics/VictoriaMetrics/lib/tenantmetrics" "github.com/VictoriaMetrics/metrics" - xxhash "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash/v2" ) var ( diff --git a/app/vmselect/promql/aggr.go b/app/vmselect/promql/aggr.go index c4927a16c..353c0226b 100644 --- a/app/vmselect/promql/aggr.go +++ b/app/vmselect/promql/aggr.go @@ -11,7 +11,7 @@ import ( "github.com/VictoriaMetrics/VictoriaMetrics/lib/storage" "github.com/VictoriaMetrics/metrics" "github.com/VictoriaMetrics/metricsql" - xxhash "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash/v2" ) var aggrFuncs = map[string]aggrFunc{ diff --git a/lib/blockcache/blockcache.go b/lib/blockcache/blockcache.go index b4911ebef..ce2aaab0e 100644 --- a/lib/blockcache/blockcache.go +++ b/lib/blockcache/blockcache.go @@ -9,7 +9,7 @@ import ( "github.com/VictoriaMetrics/VictoriaMetrics/lib/cgroup" "github.com/VictoriaMetrics/VictoriaMetrics/lib/fasttime" - xxhash "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash/v2" ) // Cache caches Block entries. diff --git a/lib/lrucache/lrucache.go b/lib/lrucache/lrucache.go index c52e20850..0c5acbcff 100644 --- a/lib/lrucache/lrucache.go +++ b/lib/lrucache/lrucache.go @@ -9,7 +9,7 @@ import ( "github.com/VictoriaMetrics/VictoriaMetrics/lib/bytesutil" "github.com/VictoriaMetrics/VictoriaMetrics/lib/cgroup" "github.com/VictoriaMetrics/VictoriaMetrics/lib/fasttime" - xxhash "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash/v2" ) // Cache caches Entry entries. diff --git a/lib/promauth/config.go b/lib/promauth/config.go index 5f48bf66f..3f7ee1178 100644 --- a/lib/promauth/config.go +++ b/lib/promauth/config.go @@ -15,7 +15,7 @@ import ( "github.com/VictoriaMetrics/VictoriaMetrics/lib/fasttime" "github.com/VictoriaMetrics/VictoriaMetrics/lib/fs" "github.com/VictoriaMetrics/VictoriaMetrics/lib/logger" - xxhash "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash/v2" "golang.org/x/oauth2" "golang.org/x/oauth2/clientcredentials" ) diff --git a/lib/promrelabel/relabel.go b/lib/promrelabel/relabel.go index 5fa938104..d9c2852d7 100644 --- a/lib/promrelabel/relabel.go +++ b/lib/promrelabel/relabel.go @@ -9,7 +9,7 @@ import ( "github.com/VictoriaMetrics/VictoriaMetrics/lib/bytesutil" "github.com/VictoriaMetrics/VictoriaMetrics/lib/logger" "github.com/VictoriaMetrics/VictoriaMetrics/lib/prompbmarshal" - xxhash "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash/v2" ) // parsedRelabelConfig contains parsed `relabel_config`. diff --git a/lib/promscrape/config.go b/lib/promscrape/config.go index acba6d7b5..92be6081d 100644 --- a/lib/promscrape/config.go +++ b/lib/promscrape/config.go @@ -35,7 +35,7 @@ import ( "github.com/VictoriaMetrics/VictoriaMetrics/lib/promutils" "github.com/VictoriaMetrics/VictoriaMetrics/lib/proxy" "github.com/VictoriaMetrics/metrics" - xxhash "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash/v2" "gopkg.in/yaml.v2" )