Skip to content

Commit

Permalink
chore: remove duplicate word in comments (#5660)
Browse files Browse the repository at this point in the history
Signed-off-by: Abirdcfly <fp544037857@gmail.com>

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
Co-authored-by: Ben Ye <ben.ye@bytedance.com>
  • Loading branch information
Abirdcfly and Ben Ye authored Sep 9, 2022
1 parent eb9810f commit 0d659bf
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 24 deletions.
4 changes: 2 additions & 2 deletions examples/dashboards/overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Shows ratio of errors compared to the the total number of handled requests against /query.",
"description": "Shows ratio of errors compared to the total number of handled requests against /query.",
"fill": 10,
"id": 2,
"legend": {
Expand Down Expand Up @@ -431,7 +431,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Shows ratio of errors compared to the the total number of handled requests against /query_range.",
"description": "Shows ratio of errors compared to the total number of handled requests against /query_range.",
"fill": 10,
"id": 5,
"legend": {
Expand Down
2 changes: 1 addition & 1 deletion examples/dashboards/query-frontend.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Shows ratio of errors compared to the the total number of handled requests against Query Frontend.",
"description": "Shows ratio of errors compared to the total number of handled requests against Query Frontend.",
"fill": 10,
"id": 3,
"legend": {
Expand Down
10 changes: 5 additions & 5 deletions examples/dashboards/query.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Shows ratio of errors compared to the the total number of handled requests against /query.",
"description": "Shows ratio of errors compared to the total number of handled requests against /query.",
"fill": 10,
"id": 2,
"legend": {
Expand Down Expand Up @@ -423,7 +423,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Shows ratio of errors compared to the the total number of handled requests against /query_range.",
"description": "Shows ratio of errors compared to the total number of handled requests against /query_range.",
"fill": 10,
"id": 5,
"legend": {
Expand Down Expand Up @@ -780,7 +780,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Shows ratio of errors compared to the the total number of handled requests from other queriers.",
"description": "Shows ratio of errors compared to the total number of handled requests from other queriers.",
"fill": 10,
"id": 8,
"legend": {
Expand Down Expand Up @@ -1137,7 +1137,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Shows ratio of errors compared to the the total number of handled requests from other queriers.",
"description": "Shows ratio of errors compared to the total number of handled requests from other queriers.",
"fill": 10,
"id": 11,
"legend": {
Expand Down Expand Up @@ -1422,7 +1422,7 @@
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"description": "Shows ratio of failures compared to the the total number of executed DNS lookups.",
"description": "Shows ratio of failures compared to the total number of executed DNS lookups.",
"fill": 10,
"id": 14,
"legend": {
Expand Down
6 changes: 3 additions & 3 deletions internal/cortex/chunk/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,19 @@ type IndexEntry struct {

type schemaBucketsFunc func(from, through model.Time, userID string) []Bucket

// baseSchema implements BaseSchema given a bucketing function and and set of range key callbacks
// baseSchema implements BaseSchema given a bucketing function and set of range key callbacks
type baseSchema struct {
buckets schemaBucketsFunc
entries baseEntries
}

// storeSchema implements StoreSchema given a bucketing function and and set of range key callbacks
// storeSchema implements StoreSchema given a bucketing function and set of range key callbacks
type storeSchema struct {
baseSchema
entries storeEntries
}

// seriesStoreSchema implements SeriesStoreSchema given a bucketing function and and set of range key callbacks
// seriesStoreSchema implements SeriesStoreSchema given a bucketing function and set of range key callbacks
type seriesStoreSchema struct {
baseSchema
entries seriesStoreEntries
Expand Down
2 changes: 1 addition & 1 deletion internal/cortex/querier/batch/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func mergeStreams(left, right batchStream, result batchStream, size int) batchSt
checkForFullBatch := func() {
if b.Index == size {
// The batch reached it intended size.
// Add another batch the the result
// Add another batch the result
// and use it for further appending.

// The Index is the place at which new sample
Expand Down
2 changes: 1 addition & 1 deletion internal/cortex/ring/kv/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func (cfg *Config) RegisterFlagsWithPrefix(flagsPrefix, defaultPrefix string, f
// Client is a high-level client for key-value stores (such as Etcd and
// Consul) that exposes operations such as CAS and Watch which take callbacks.
// It also deals with serialisation by using a Codec and having a instance of
// the the desired type passed in to methods ala json.Unmarshal.
// the desired type passed in to methods ala json.Unmarshal.
type Client interface {
// List returns a list of keys under the given prefix. Returned keys will
// include the prefix.
Expand Down
2 changes: 1 addition & 1 deletion internal/cortex/ring/kv/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ func (c *Client) CAS(ctx context.Context, key string, f func(in interface{}) (ou
lastErr = err
continue
}
// result is not Succeeded if the the comparison was false, meaning if the modify indexes did not match.
// result is not Succeeded if the comparison was false, meaning if the modify indexes did not match.
if !result.Succeeded {
level.Debug(c.logger).Log("msg", "failed to CAS, revision and version did not match in etcd", "key", key, "revision", revision)
continue
Expand Down
2 changes: 1 addition & 1 deletion mixin/dashboards/query-frontend.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ local utils = import '../lib/utils.libsonnet';
g.httpQpsPanel('thanos_query_frontend_queries_total', queryFrontendOpSelector, thanos.queryFrontend.dashboard.dimensions)
)
.addPanel(
g.panel('Errors', 'Shows ratio of errors compared to the the total number of handled requests against Query Frontend.') +
g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests against Query Frontend.') +
g.httpErrPanel('http_requests_total', queryFrontendHandlerSelector, thanos.queryFrontend.dashboard.dimensions)
)
.addPanel(
Expand Down
14 changes: 7 additions & 7 deletions mixin/dashboards/query.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ local utils = import '../lib/utils.libsonnet';
g.httpQpsPanel('http_requests_total', queryHandlerSelector, thanos.query.dashboard.dimensions)
)
.addPanel(
g.panel('Errors', 'Shows ratio of errors compared to the the total number of handled requests against /query.') +
g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests against /query.') +
g.httpErrPanel('http_requests_total', queryHandlerSelector, thanos.query.dashboard.dimensions)
)
.addPanel(
Expand All @@ -40,7 +40,7 @@ local utils = import '../lib/utils.libsonnet';
g.httpQpsPanel('http_requests_total', queryRangeHandlerSelector, thanos.query.dashboard.dimensions)
)
.addPanel(
g.panel('Errors', 'Shows ratio of errors compared to the the total number of handled requests against /query_range.') +
g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests against /query_range.') +
g.httpErrPanel('http_requests_total', queryRangeHandlerSelector, thanos.query.dashboard.dimensions)
)
.addPanel(
Expand All @@ -55,7 +55,7 @@ local utils = import '../lib/utils.libsonnet';
g.grpcRequestsPanel('grpc_client_handled_total', grpcUnarySelector, thanos.query.dashboard.dimensions)
)
.addPanel(
g.panel('Errors', 'Shows ratio of errors compared to the the total number of handled requests from other queriers.') +
g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests from other queriers.') +
g.grpcErrorsPanel('grpc_client_handled_total', grpcUnarySelector, thanos.query.dashboard.dimensions)
)
.addPanel(
Expand All @@ -70,7 +70,7 @@ local utils = import '../lib/utils.libsonnet';
g.grpcRequestsPanel('grpc_client_handled_total', grpcServerStreamSelector, thanos.query.dashboard.dimensions)
)
.addPanel(
g.panel('Errors', 'Shows ratio of errors compared to the the total number of handled requests from other queriers.') +
g.panel('Errors', 'Shows ratio of errors compared to the total number of handled requests from other queriers.') +
g.grpcErrorsPanel('grpc_client_handled_total', grpcServerStreamSelector, thanos.query.dashboard.dimensions)
)
.addPanel(
Expand All @@ -88,7 +88,7 @@ local utils = import '../lib/utils.libsonnet';
)
)
.addPanel(
g.panel('Errors', 'Shows ratio of failures compared to the the total number of executed DNS lookups.') +
g.panel('Errors', 'Shows ratio of failures compared to the total number of executed DNS lookups.') +
g.qpsErrTotalPanel(
'thanos_query_store_apis_dns_failures_total{%s}' % thanos.query.dashboard.selector,
'thanos_query_store_apis_dns_lookups_total{%s}' % thanos.query.dashboard.selector,
Expand All @@ -108,7 +108,7 @@ local utils = import '../lib/utils.libsonnet';
g.addDashboardLink(thanos.query.title)
)
.addPanel(
g.panel('Requests Errors', 'Shows ratio of errors compared to the the total number of handled requests against /query.') +
g.panel('Requests Errors', 'Shows ratio of errors compared to the total number of handled requests against /query.') +
g.httpErrPanel('http_requests_total', utils.joinLabels([thanos.dashboard.overview.selector, 'handler="query"']), thanos.dashboard.overview.dimensions) +
g.addDashboardLink(thanos.query.title)
)
Expand All @@ -132,7 +132,7 @@ local utils = import '../lib/utils.libsonnet';
g.addDashboardLink(thanos.query.title)
)
.addPanel(
g.panel('Requests Errors', 'Shows ratio of errors compared to the the total number of handled requests against /query_range.') +
g.panel('Requests Errors', 'Shows ratio of errors compared to the total number of handled requests against /query_range.') +
g.httpErrPanel('http_requests_total', utils.joinLabels([thanos.dashboard.overview.selector, 'handler="query_range"']), thanos.dashboard.overview.dimensions) +
g.addDashboardLink(thanos.query.title)
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/receive/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ func (a *nopSeriesLimit) isUnderLimit(_ string, _ log.Logger) (bool, error) {
// forward accepts a write request, batches its time series by
// corresponding endpoint, and forwards them in parallel to the
// correct endpoint. Requests destined for the local node are written
// the the local receiver. For a given write request, at most one outgoing
// the local receiver. For a given write request, at most one outgoing
// write request will be made to every other node in the hashring,
// unless the request needs to be replicated.
// The function only returns when all requests have finished
Expand Down
2 changes: 1 addition & 1 deletion pkg/server/http/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func WithEnableH2C(enableH2C bool) Option {
})
}

// WithMux overrides the the server's default mux.
// WithMux overrides the server's default mux.
func WithMux(mux *http.ServeMux) Option {
return optionFunc(func(o *options) {
o.mux = mux
Expand Down

0 comments on commit 0d659bf

Please sign in to comment.