diff --git a/examples/oauth/client/main.go b/examples/oauth/client/main.go index bb8498ac8..d167c43e6 100644 --- a/examples/oauth/client/main.go +++ b/examples/oauth/client/main.go @@ -36,7 +36,7 @@ func main() { perRPC := oauth.NewOauthAccess(fetchToken()) opts := []grpc.DialOption{ // In addition to the following grpc.DialOption, callers may also use - // the grpc.CallOption grpc.PerRPCCredentials with the RPC invokation + // the grpc.CallOption grpc.PerRPCCredentials with the RPC invocation // itself. // See: https://godoc.org/google.golang.org/grpc#PerRPCCredentials grpc.WithPerRPCCredentials(perRPC), diff --git a/test/channelz_test.go b/test/channelz_test.go index 82f1a8f09..86ec3f102 100644 --- a/test/channelz_test.go +++ b/test/channelz_test.go @@ -790,7 +790,7 @@ func doServerSideInitiatedFailedStreamWithClientBreakFlowControl(tc testpb.TestS if err != nil { t.Fatalf("TestService/FullDuplexCall(_) = _, %v, want ", err) } - // sleep here to make sure header frame being sent before the the data frame we write directly below. + // sleep here to make sure header frame being sent before the data frame we write directly below. time.Sleep(10 * time.Millisecond) payload := make([]byte, 65537, 65537) dw.getRawConnWrapper().writeRawFrame(http2.FrameData, 0, tc.(*testServiceClientWrapper).getCurrentStreamID(), payload) diff --git a/transport/controlbuf.go b/transport/controlbuf.go index 72e025cc0..e147cd51b 100644 --- a/transport/controlbuf.go +++ b/transport/controlbuf.go @@ -573,7 +573,7 @@ func (l *loopyWriter) pingHandler(p *ping) error { } -func (l *loopyWriter) outFlowControlSizeRequestHanlder(o *outFlowControlSizeRequest) error { +func (l *loopyWriter) outFlowControlSizeRequestHandler(o *outFlowControlSizeRequest) error { o.resp <- l.sendQuota return nil } @@ -643,7 +643,7 @@ func (l *loopyWriter) handle(i interface{}) error { case *goAway: return l.goAwayHandler(i) case *outFlowControlSizeRequest: - return l.outFlowControlSizeRequestHanlder(i) + return l.outFlowControlSizeRequestHandler(i) default: return fmt.Errorf("transport: unknown control message type %T", i) }