Skip to content

Commit c351f37

Browse files
authored
chore: remove duplicate word in comments (#5616)
1 parent f0f9f00 commit c351f37

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

balancer/rls/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ type lbConfigJSON struct {
127127
// - across all `headers`, `constant_keys` and `extra_keys` fields:
128128
// - must not have the same `key` specified twice
129129
// - no `key` must be the empty string
130-
// - `lookup_service` field must be set and and must parse as a target URI
130+
// - `lookup_service` field must be set and must parse as a target URI
131131
// - if `max_age` > 5m, it should be set to 5 minutes
132132
// - if `stale_age` > `max_age`, ignore it
133133
// - if `stale_age` is set, then `max_age` must also be set
@@ -185,7 +185,7 @@ func parseRLSProto(rlsProto *rlspb.RouteLookupConfig) (*lbConfig, error) {
185185
return nil, err
186186
}
187187

188-
// `lookup_service` field must be set and and must parse as a target URI.
188+
// `lookup_service` field must be set and must parse as a target URI.
189189
lookupService := rlsProto.GetLookupService()
190190
if lookupService == "" {
191191
return nil, fmt.Errorf("rls: empty lookup_service in route lookup config %+v", rlsProto)

credentials/sts/sts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ type Options struct {
105105

106106
// ActorTokenType is an identifier, as described in
107107
// https://tools.ietf.org/html/rfc8693#section-3, that indicates the type of
108-
// the the security token in the "actor_token_path" parameter.
108+
// the security token in the "actor_token_path" parameter.
109109
ActorTokenType string // Optional.
110110
}
111111

credentials/sts/sts_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (r errReader) Read(b []byte) (n int, err error) {
114114
}
115115

116116
// We need a function to construct the response instead of simply declaring it
117-
// as a variable since the the response body will be consumed by the
117+
// as a variable since the response body will be consumed by the
118118
// credentials, and therefore we will need a new one everytime.
119119
func makeGoodResponse() *http.Response {
120120
respJSON, _ := json.Marshal(responseParameters{

credentials/tls/certprovider/store_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ func (s) TestStoreSingleProviderDifferentConfigs(t *testing.T) {
342342
t.Fatal(err)
343343
}
344344

345-
// Push new key material into only one of the fake providers and and verify
345+
// Push new key material into only one of the fake providers and verify
346346
// that the providers returned by the store return the appropriate key
347347
// material.
348348
km2 := loadKeyMaterials(t, "x509/server2_cert.pem", "x509/server2_key.pem", "x509/client_ca_cert.pem")

internal/balancergroup/balancerstateaggregator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
// state.
2727
//
2828
// It takes care of merging sub-picker into one picker. The picking config is
29-
// passed directly from the the parent to the aggregator implementation (instead
29+
// passed directly from the parent to the aggregator implementation (instead
3030
// via balancer group).
3131
type BalancerStateAggregator interface {
3232
// UpdateState updates the state of the id.

internal/testutils/roundrobin/roundrobin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ func CheckRoundRobinRPCs(ctx context.Context, client testgrpc.TestServiceClient,
111111
}
112112
iterations = append(iterations, iteration)
113113
}
114-
// Ensure the the first iteration contains all addresses in addrs.
114+
// Ensure the first iteration contains all addresses in addrs.
115115
gotAddrCount := make(map[string]int)
116116
for _, addr := range iterations[0] {
117117
gotAddrCount[addr]++

security/advancedtls/advancedtls_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func (s) TestEnd2End(t *testing.T) {
308308
// The mutual authentication works at the beginning, since ClientCert1
309309
// trusted by ServerTrust1, ServerCert1 by ClientTrust1, and also the
310310
// custom verification check on server side allows all connections.
311-
// At stage 1, server disallows the the connections by setting custom
311+
// At stage 1, server disallows the connections by setting custom
312312
// verification check. The following calls should fail. Previous
313313
// connections should not be affected.
314314
// At stage 2, server allows all the connections again and the
@@ -555,7 +555,7 @@ func createProviders(tmpFiles *tmpCredsFiles) (certprovider.Provider, certprovid
555555
// Next, we change the identity certs that IdentityProvider is watching. Since
556556
// the identity key is not changed, the IdentityProvider should ignore the
557557
// update, and the connection should still be good.
558-
// Then the the identity key is changed. This time IdentityProvider should pick
558+
// Then the identity key is changed. This time IdentityProvider should pick
559559
// up the update, and the connection should fail, due to the trust certs on the
560560
// other side is not changed.
561561
// Finally, the trust certs that other-side's RootProvider is watching get

xds/internal/balancer/cdsbalancer/cdsbalancer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ func (s) TestCircuitBreaking(t *testing.T) {
694694
counter.EndRequest()
695695
}
696696

697-
// TestClose verifies the Close() method in the the CDS balancer.
697+
// TestClose verifies the Close() method in the CDS balancer.
698698
func (s) TestClose(t *testing.T) {
699699
// This creates a CDS balancer, pushes a ClientConnState update with a fake
700700
// xdsClient, and makes sure that the CDS balancer registers a watch on the

xds/internal/resolver/watch_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (w *serviceUpdateWatcher) handleLDSResp(update xdsresource.ListenerUpdate,
143143
// update before reporting this LDS config.
144144
if w.lastUpdate.virtualHost != nil {
145145
// We want to send an update with the new fields from the new LDS
146-
// (e.g. max stream duration), and old fields from the the previous
146+
// (e.g. max stream duration), and old fields from the previous
147147
// RDS.
148148
//
149149
// But note that this should only happen when virtual host is set,

0 commit comments

Comments
 (0)