Skip to content

Commit

Permalink
chore: fix spelling
Browse files Browse the repository at this point in the history
Just spelling fixes in the code.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
  • Loading branch information
smira authored and talos-bot committed Apr 7, 2021
1 parent c0a87d9 commit fa6843a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions proxy/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (s *handler) handler(srv interface{}, serverStream grpc.ServerStream) error
// little bit of gRPC internals never hurt anyone
fullMethodName, ok := grpc.MethodFromServerStream(serverStream)
if !ok {
return status.Errorf(codes.Internal, "lowLevelServerStream not exists in context")
return status.Errorf(codes.Internal, "lowLevelServerStream doesn't exist in the context")
}

mode, backends, err := s.director(serverStream.Context(), fullMethodName)
Expand Down Expand Up @@ -80,7 +80,7 @@ func (s *handler) handler(srv interface{}, serverStream grpc.ServerStream) error
switch mode {
case One2One:
if len(backendConnections) != 1 {
return status.Errorf(codes.Internal, "one2one proxying can't should have exactly one connection (got %d)", len(backendConnections))
return status.Errorf(codes.Internal, "one2one proxying should have exactly one connection (got %d)", len(backendConnections))
}

return s.handlerOne2One(serverStream, backendConnections)
Expand Down

0 comments on commit fa6843a

Please sign in to comment.