Skip to content

Commit c433342

Browse files
Abirdcflyjsternberg
authored andcommitted
chore: remove duplicate word in comments (#23685)
Signed-off-by: Abirdcfly <[email protected]> Signed-off-by: Abirdcfly <[email protected]>
1 parent 1c6fbf9 commit c433342

File tree

17 files changed

+20
-21
lines changed

17 files changed

+20
-21
lines changed

cmd/influxd/inspect/report_tsm/report_tsm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func (a *args) walkShardDirs(root string, fn func(db, rp, id, path string) error
335335
return nil
336336
}
337337

338-
// counter abstracts a a method of counting keys.
338+
// counter abstracts a method of counting keys.
339339
type counter interface {
340340
Add(key []byte)
341341
Count() uint64

influxql/query/linear.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package query
22

3-
// linearFloat computes the the slope of the line between the points (previousTime, previousValue) and (nextTime, nextValue)
3+
// linearFloat computes the slope of the line between the points (previousTime, previousValue) and (nextTime, nextValue)
44
// and returns the value of the point on the line with time windowTime
55
// y = mx + b
66
func linearFloat(windowTime, previousTime, nextTime int64, previousValue, nextValue float64) float64 {
@@ -10,7 +10,7 @@ func linearFloat(windowTime, previousTime, nextTime int64, previousValue, nextVa
1010
return m*x + b
1111
}
1212

13-
// linearInteger computes the the slope of the line between the points (previousTime, previousValue) and (nextTime, nextValue)
13+
// linearInteger computes the slope of the line between the points (previousTime, previousValue) and (nextTime, nextValue)
1414
// and returns the value of the point on the line with time windowTime
1515
// y = mx + b
1616
func linearInteger(windowTime, previousTime, nextTime int64, previousValue, nextValue int64) int64 {
@@ -20,7 +20,7 @@ func linearInteger(windowTime, previousTime, nextTime int64, previousValue, next
2020
return int64(m*x + b)
2121
}
2222

23-
// linearInteger computes the the slope of the line between the points (previousTime, previousValue) and (nextTime, nextValue)
23+
// linearInteger computes the slope of the line between the points (previousTime, previousValue) and (nextTime, nextValue)
2424
// and returns the value of the point on the line with time windowTime
2525
// y = mx + b
2626
func linearUnsigned(windowTime, previousTime, nextTime int64, previousValue, nextValue uint64) uint64 {

models/points.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@ func scanFields(buf []byte, i int) (int, []byte, error) {
880880

881881
// scanTime scans buf, starting at i for the time section of a point. It
882882
// returns the ending position and the byte slice of the timestamp within buf
883-
// and and error if the timestamp is not in the correct numeric format.
883+
// and error if the timestamp is not in the correct numeric format.
884884
func scanTime(buf []byte, i int) (int, []byte, error) {
885885
start := skipWhitespace(buf, i)
886886
i = start

pkg/tar/stream.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func Stream(w io.Writer, dir, relativePath string, writeFunc func(f os.FileInfo,
3434
return nil
3535
}
3636

37-
// Figure out the the full relative path including any sub-dirs
37+
// Figure out the full relative path including any sub-dirs
3838
subDir, _ := filepath.Split(path)
3939
subDir, err = filepath.Rel(dir, subDir)
4040
if err != nil {
@@ -66,7 +66,7 @@ func StreamFile(f os.FileInfo, shardRelativePath, fullPath string, tw *tar.Write
6666
return StreamRenameFile(f, f.Name(), shardRelativePath, fullPath, tw)
6767
}
6868

69-
/// Stream a single file to tw, using tarHeaderFileName instead of the actual filename
69+
// Stream a single file to tw, using tarHeaderFileName instead of the actual filename
7070
// e.g., when we want to write a *.tmp file using the original file's non-tmp name.
7171
func StreamRenameFile(f os.FileInfo, tarHeaderFileName, relativePath, fullPath string, tw *tar.Writer) error {
7272
h, err := tar.FileInfoHeader(f, f.Name())

pkger/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The parser will validate all contents of the template and provide any
2323
and all fields/entries that failed validation.
2424
2525
If you wish to use the Template type in your transport layer and let the
26-
the transport layer manage the decoding, then you can run the following
26+
transport layer manage the decoding, then you can run the following
2727
to validate the template after the raw decoding is done:
2828
2929
if err := template.Validate(); err != nil {

pprof/http_server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func archiveProfilesHandler(w http.ResponseWriter, r *http.Request) {
114114
}
115115

116116
// Capturing CPU profiles is a little trickier. The preferred way to send the
117-
// the cpu profile duration is via the supplied "cpu" variable's value.
117+
// cpu profile duration is via the supplied "cpu" variable's value.
118118
//
119119
// The duration should be encoded as a Go duration that can be parsed by
120120
// time.ParseDuration().

session.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const ErrSessionNotFound = "session not found"
1414
// ErrSessionExpired is the error message for expired sessions.
1515
const ErrSessionExpired = "session has expired"
1616

17-
// RenewSessionTime is the the time to extend session, currently set to 5min.
17+
// RenewSessionTime is the time to extend session, currently set to 5min.
1818
var RenewSessionTime = time.Duration(time.Second * 300)
1919

2020
// DefaultSessionLength is the default session length on initial creation.

telegraf/plugins/plugins.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1158,7 +1158,7 @@ var availableInputs = `{
11581158
"type": "input",
11591159
"name": "graylog",
11601160
"description": "Read flattened metrics from one or more GrayLog HTTP endpoints",
1161-
"config": "# Read flattened metrics from one or more GrayLog HTTP endpoints\n[[inputs.graylog]]\n # alias=\"graylog\"\n ## API endpoint, currently supported API:\n ##\n ## - multiple (Ex http://\u003chost\u003e:12900/system/metrics/multiple)\n ## - namespace (Ex http://\u003chost\u003e:12900/system/metrics/namespace/{namespace})\n ##\n ## For namespace endpoint, the metrics array will be ignored for that call.\n ## Endpoint can contain namespace and multiple type calls.\n ##\n ## Please check http://[graylog-server-ip]:12900/api-browser for full list\n ## of endpoints\n servers = [\n \"http://[graylog-server-ip]:12900/system/metrics/multiple\",\n ]\n\n ## Metrics list\n ## List of metrics can be found on Graylog webservice documentation.\n ## Or by hitting the the web service api at:\n ## http://[graylog-host]:12900/system/metrics\n metrics = [\n \"jvm.cl.loaded\",\n \"jvm.memory.pools.Metaspace.committed\"\n ]\n\n ## Username and password\n username = \"\"\n password = \"\"\n\n ## Optional TLS Config\n # tls_ca = \"/etc/telegraf/ca.pem\"\n # tls_cert = \"/etc/telegraf/cert.pem\"\n # tls_key = \"/etc/telegraf/key.pem\"\n ## Use TLS but skip chain \u0026 host verification\n # insecure_skip_verify = false\n\n"
1161+
"config": "# Read flattened metrics from one or more GrayLog HTTP endpoints\n[[inputs.graylog]]\n # alias=\"graylog\"\n ## API endpoint, currently supported API:\n ##\n ## - multiple (Ex http://\u003chost\u003e:12900/system/metrics/multiple)\n ## - namespace (Ex http://\u003chost\u003e:12900/system/metrics/namespace/{namespace})\n ##\n ## For namespace endpoint, the metrics array will be ignored for that call.\n ## Endpoint can contain namespace and multiple type calls.\n ##\n ## Please check http://[graylog-server-ip]:12900/api-browser for full list\n ## of endpoints\n servers = [\n \"http://[graylog-server-ip]:12900/system/metrics/multiple\",\n ]\n\n ## Metrics list\n ## List of metrics can be found on Graylog webservice documentation.\n ## Or by hitting the web service api at:\n ## http://[graylog-host]:12900/system/metrics\n metrics = [\n \"jvm.cl.loaded\",\n \"jvm.memory.pools.Metaspace.committed\"\n ]\n\n ## Username and password\n username = \"\"\n password = \"\"\n\n ## Optional TLS Config\n # tls_ca = \"/etc/telegraf/ca.pem\"\n # tls_cert = \"/etc/telegraf/cert.pem\"\n # tls_key = \"/etc/telegraf/key.pem\"\n ## Use TLS but skip chain \u0026 host verification\n # insecure_skip_verify = false\n\n"
11621162
},
11631163
{
11641164
"type": "input",

tsdb/engine/tsm1/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ type Cache struct {
182182
lastWriteTime time.Time
183183

184184
// A one time synchronization used to initial the cache with a store. Since the store can allocate a
185-
// a large amount memory across shards, we lazily create it.
185+
// large amount memory across shards, we lazily create it.
186186
initialize atomic.Value
187187
initializedCount uint32
188188
}

tsdb/engine/tsm1/engine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ func (e *Engine) deleteSeriesRange(ctx context.Context, seriesKeys [][]byte, min
15871587
}
15881588

15891589
// The series are deleted on disk, but the index may still say they exist.
1590-
// Depending on the the min,max time passed in, the series may or not actually
1590+
// Depending on the min,max time passed in, the series may or not actually
15911591
// exists now. To reconcile the index, we walk the series keys that still exists
15921592
// on disk and cross out any keys that match the passed in series. Any series
15931593
// left in the slice at the end do not exist and can be deleted from the index.

0 commit comments

Comments
 (0)