Skip to content

Commit 94687c3

Browse files
menghanldfawley
authored andcommitted
fix misspell (grpc#1592)
1 parent 473b142 commit 94687c3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

picker_wrapper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestBlockingPickNoSubAvailable(t *testing.T) {
100100
bp := newPickerWrapper()
101101
var finishedCount uint64
102102
bp.updatePicker(&testingPicker{err: balancer.ErrNoSubConnAvailable, maxCalled: goroutineCount})
103-
// All goroutines should block because picker returns no sc avilable.
103+
// All goroutines should block because picker returns no sc available.
104104
for i := goroutineCount; i > 0; i-- {
105105
go func() {
106106
if tr, _, err := bp.pick(context.Background(), true, balancer.PickOptions{}); err != nil || tr != testT {

transport/http2_client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (_ *Strea
417417
if sq > 1 {
418418
t.streamsQuota.add(sq - 1)
419419
}
420-
// TODO(mmukhi): Benchmark if the perfomance gets better if count the metadata and other header fields
420+
// TODO(mmukhi): Benchmark if the performance gets better if count the metadata and other header fields
421421
// first and create a slice of that exact size.
422422
// Make the slice of certain predictable size to reduce allocations made by append.
423423
hfLen := 7 // :method, :scheme, :path, :authority, content-type, user-agent, te

transport/http2_server.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ func (t *http2Server) WriteHeader(s *Stream, md metadata.MD) error {
708708
}
709709
md = s.header
710710
s.mu.Unlock()
711-
// TODO(mmukhi): Benchmark if the perfomance gets better if count the metadata and other header fields
711+
// TODO(mmukhi): Benchmark if the performance gets better if count the metadata and other header fields
712712
// first and create a slice of that exact size.
713713
headerFields := make([]hpack.HeaderField, 0, 2) // at least :status, content-type will be there if none else.
714714
headerFields = append(headerFields, hpack.HeaderField{Name: ":status", Value: "200"})
@@ -769,7 +769,7 @@ func (t *http2Server) WriteStatus(s *Stream, st *status.Status) error {
769769
headersSent = true
770770
}
771771

772-
// TODO(mmukhi): Benchmark if the perfomance gets better if count the metadata and other header fields
772+
// TODO(mmukhi): Benchmark if the performance gets better if count the metadata and other header fields
773773
// first and create a slice of that exact size.
774774
headerFields := make([]hpack.HeaderField, 0, 2) // grpc-status and grpc-message will be there if none else.
775775
if !headersSent {

0 commit comments

Comments
 (0)