From fe545dfc85f0a7758830d2801e43557cceb6d9dc Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Fri, 23 Feb 2024 04:52:38 +0200 Subject: [PATCH] app/vmstorage: remove unused import after 2a5c6e1cd5c10ba106f3ed75f71feca93cb5e90c --- app/vmstorage/main.go | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/app/vmstorage/main.go b/app/vmstorage/main.go index c3746b529..2a6be198c 100644 --- a/app/vmstorage/main.go +++ b/app/vmstorage/main.go @@ -15,7 +15,6 @@ import ( "github.com/VictoriaMetrics/VictoriaMetrics/app/vmstorage/servers" "github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo" "github.com/VictoriaMetrics/VictoriaMetrics/lib/envflag" - "github.com/VictoriaMetrics/VictoriaMetrics/lib/fasttime" "github.com/VictoriaMetrics/VictoriaMetrics/lib/flagutil" "github.com/VictoriaMetrics/VictoriaMetrics/lib/fs" "github.com/VictoriaMetrics/VictoriaMetrics/lib/httpserver" @@ -34,14 +33,14 @@ var ( useProxyProtocol = flagutil.NewArrayBool("httpListenAddr.useProxyProtocol", "Whether to use proxy protocol for connections accepted at the given -httpListenAddr . "+ "See https://www.haproxy.org/download/1.8/doc/proxy-protocol.txt . "+ "With enabled proxy protocol http server cannot serve regular /metrics endpoint. Use -pushmetrics.url for metrics pushing") - storageDataPath = flag.String("storageDataPath", "vmstorage-data", "Path to storage data") - vminsertAddr = flag.String("vminsertAddr", ":8400", "TCP address to accept connections from vminsert services") - vmselectAddr = flag.String("vmselectAddr", ":8401", "TCP address to accept connections from vmselect services") - snapshotAuthKey = flagutil.NewPassword("snapshotAuthKey", "authKey, which must be passed in query string to /snapshot* pages") - forceMergeAuthKey = flagutil.NewPassword("forceMergeAuthKey", "authKey, which must be passed in query string to /internal/force_merge pages") - forceFlushAuthKey = flagutil.NewPassword("forceFlushAuthKey", "authKey, which must be passed in query string to /internal/force_flush pages") - snapshotsMaxAge = flagutil.NewDuration("snapshotsMaxAge", "0", "Automatically delete snapshots older than -snapshotsMaxAge if it is set to non-zero duration. Make sure that backup process has enough time to finish the backup before the corresponding snapshot is automatically deleted") - snapshotCreateTimeout = flag.Duration("snapshotCreateTimeout", 0, "Deprecated: this flag does nothing") + storageDataPath = flag.String("storageDataPath", "vmstorage-data", "Path to storage data") + vminsertAddr = flag.String("vminsertAddr", ":8400", "TCP address to accept connections from vminsert services") + vmselectAddr = flag.String("vmselectAddr", ":8401", "TCP address to accept connections from vmselect services") + snapshotAuthKey = flagutil.NewPassword("snapshotAuthKey", "authKey, which must be passed in query string to /snapshot* pages") + forceMergeAuthKey = flagutil.NewPassword("forceMergeAuthKey", "authKey, which must be passed in query string to /internal/force_merge pages") + forceFlushAuthKey = flagutil.NewPassword("forceFlushAuthKey", "authKey, which must be passed in query string to /internal/force_flush pages") + snapshotsMaxAge = flagutil.NewDuration("snapshotsMaxAge", "0", "Automatically delete snapshots older than -snapshotsMaxAge if it is set to non-zero duration. Make sure that backup process has enough time to finish the backup before the corresponding snapshot is automatically deleted") + _ = flag.Duration("snapshotCreateTimeout", 0, "Deprecated: this flag does nothing") _ = flag.Duration("finalMergeDelay", 0, "Deprecated: this flag does nothing") _ = flag.Int("bigMergeConcurrency", 0, "Deprecated: this flag does nothing")