mirror of https://github.com/grpc/grpc-go.git
Fix typos (#2020)
This commit is contained in:
parent
9c2d308aed
commit
247a5d4487
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -790,7 +790,7 @@ func doServerSideInitiatedFailedStreamWithClientBreakFlowControl(tc testpb.TestS
|
|||
if err != nil {
|
||||
t.Fatalf("TestService/FullDuplexCall(_) = _, %v, want <nil>", 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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue