Skip to content

Commit 4f43d2e

Browse files
authored
chore: remove repetitive words (#7036)
1 parent 7c37770 commit 4f43d2e

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

balancer/leastrequest/balancer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func checkRoundRobinRPCs(ctx context.Context, client testgrpc.TestServiceClient,
170170
}
171171
iterations = append(iterations, iteration)
172172
}
173-
// Ensure the the first iteration contains all addresses in addrs.
173+
// Ensure the first iteration contains all addresses in addrs.
174174
for _, addr := range iterations[0] {
175175
gotAddrCount[addr]++
176176
}

balancer/weightedroundrobin/scheduler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ func (s *edfScheduler) nextIndex() int {
125125
}
126126

127127
// A simple RR scheduler to use for fallback when fewer than two backends have
128-
// non-zero weights, or all backends have the the same weight, or when only one
128+
// non-zero weights, or all backends have the same weight, or when only one
129129
// subconn exists.
130130
type rrScheduler struct {
131131
inc func() uint32

clientconn.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var (
6767
errConnDrain = errors.New("grpc: the connection is drained")
6868
// errConnClosing indicates that the connection is closing.
6969
errConnClosing = errors.New("grpc: the connection is closing")
70-
// errConnIdling indicates the the connection is being closed as the channel
70+
// errConnIdling indicates the connection is being closed as the channel
7171
// is moving to an idle mode due to inactivity.
7272
errConnIdling = errors.New("grpc: the connection is closing due to channel idleness")
7373
// invalidDefaultServiceConfigErrPrefix is used to prefix the json parsing error for the default

examples/features/observability/client/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var (
4343
func main() {
4444
// Turn on global telemetry for the whole binary. If a configuration is
4545
// specified, any created gRPC Client Conn's or Servers will emit telemetry
46-
// data according the the configuration.
46+
// data according the configuration.
4747
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
4848
defer cancel()
4949
err := observability.Start(ctx)

examples/features/observability/server/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func (s *server) SayHello(ctx context.Context, in *pb.HelloRequest) (*pb.HelloRe
5353
func main() {
5454
// Turn on global telemetry for the whole binary. If a configuration is
5555
// specified, any created gRPC Client Conn's or Servers will emit telemetry
56-
// data according the the configuration.
56+
// data according the configuration.
5757
ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
5858
defer cancel()
5959
err := observability.Start(ctx)

test/authority_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (s) TestColonPortAuthority(t *testing.T) {
210210
}
211211

212212
// TestAuthorityReplacedWithResolverAddress tests the scenario where the resolver
213-
// returned address contains a ServerName override. The test verifies that the the
213+
// returned address contains a ServerName override. The test verifies that the
214214
// :authority header value sent to the server as part of the http/2 HEADERS frame
215215
// is set to the value specified in the resolver returned address.
216216
func (s) TestAuthorityReplacedWithResolverAddress(t *testing.T) {

test/xds/xds_client_outlier_detection_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func checkRoundRobinRPCs(ctx context.Context, client testgrpc.TestServiceClient,
136136
}
137137
iterations = append(iterations, iteration)
138138
}
139-
// Ensure the the first iteration contains all addresses in addrs.
139+
// Ensure the first iteration contains all addresses in addrs.
140140
gotAddrCount := make(map[string]int)
141141
for _, addr := range iterations[0] {
142142
gotAddrCount[addr]++

xds/internal/balancer/outlierdetection/e2e_test/outlierdetection_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func checkRoundRobinRPCs(ctx context.Context, client testgrpc.TestServiceClient,
123123
}
124124
iterations = append(iterations, iteration)
125125
}
126-
// Ensure the the first iteration contains all addresses in addrs.
126+
// Ensure the first iteration contains all addresses in addrs.
127127
for _, addr := range iterations[0] {
128128
gotAddrCount[addr]++
129129
}

0 commit comments

Comments
 (0)