From 14660d4df5914fba15f1979caed7139edd708e18 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Sat, 3 Dec 2022 21:53:01 -0800 Subject: [PATCH] all: typo fix: `the the` -> `the` --- app/vmagent/remotewrite/remotewrite.go | 2 +- lib/promrelabel/graphite.go | 2 +- lib/promscrape/config.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/vmagent/remotewrite/remotewrite.go b/app/vmagent/remotewrite/remotewrite.go index ae5234ff4..d64d38113 100644 --- a/app/vmagent/remotewrite/remotewrite.go +++ b/app/vmagent/remotewrite/remotewrite.go @@ -251,7 +251,7 @@ func Stop() { // Push sends wr to remote storage systems set via `-remoteWrite.url`. // // If at is nil, then the data is pushed to the configured `-remoteWrite.url`. -// If at isn't nil, the the data is pushed to the configured `-remoteWrite.multitenantURL`. +// If at isn't nil, the data is pushed to the configured `-remoteWrite.multitenantURL`. // // Note that wr may be modified by Push due to relabeling and rounding. func Push(at *auth.Token, wr *prompbmarshal.WriteRequest) { diff --git a/lib/promrelabel/graphite.go b/lib/promrelabel/graphite.go index 015f6bcdc..de39634b2 100644 --- a/lib/promrelabel/graphite.go +++ b/lib/promrelabel/graphite.go @@ -106,7 +106,7 @@ func (gmt *graphiteMatchTemplate) Match(dst []string, s string) ([]string, bool) dst = append(dst, s) return dst, true } - // Search for the the start of the next part. + // Search for the start of the next part. p = parts[i+1] i++ n := strings.Index(s, p) diff --git a/lib/promscrape/config.go b/lib/promscrape/config.go index aaa6f8a8a..eba623cae 100644 --- a/lib/promscrape/config.go +++ b/lib/promscrape/config.go @@ -137,7 +137,7 @@ func (cfg *Config) mustRestart(prevCfg *Config) { // See https://github.com/VictoriaMetrics/VictoriaMetrics/issues/2884 needGlobalRestart := !areEqualGlobalConfigs(&cfg.Global, &prevCfg.Global) - // Loop over the the new jobs, start new ones and restart updated ones. + // Loop over the new jobs, start new ones and restart updated ones. var started, stopped, restarted int currentJobNames := make(map[string]struct{}, len(cfg.ScrapeConfigs)) for i, sc := range cfg.ScrapeConfigs {