Permalink
Browse files

Typo "hander" should be "handler" (#1196)

  • Loading branch information...
DazWilkin authored and gdbelvin committed Feb 8, 2019
1 parent a06ace0 commit 5487dfb1f2906f39c6beb3b65c85e22b92fe5883
Showing with 2 additions and 2 deletions.
  1. +2 −2 impl/authorization/interceptor.go
@@ -35,7 +35,7 @@ func UnaryServerInterceptor(authFuncs map[string]AuthPair) grpc.UnaryServerInter
return func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error) {
policy, ok := authFuncs[info.FullMethod]
if !ok {
glog.V(2).Infof("auth interceptor: no hander for %v", info.FullMethod)
glog.V(2).Infof("auth interceptor: no handler for %v", info.FullMethod)
// If no auth handler was found for this method, invoke the method directly.
return handler(ctx, req)

@@ -56,7 +56,7 @@ func StreamServerInterceptor(authFuncs map[string]AuthPair) grpc.StreamServerInt
return func(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error {
policy, ok := authFuncs[info.FullMethod]
if !ok {
glog.V(2).Infof("auth interceptor: no hander for %v", info.FullMethod)
glog.V(2).Infof("auth interceptor: no handler for %v", info.FullMethod)
// If no auth handler was found for this method, invoke the method directly.
return handler(srv, stream)
}

0 comments on commit 5487dfb

Please sign in to comment.