Skip to content

Commit 51cebef

Browse files
authored
fix: correct comment typo in StreamServerInterceptor function (#760)
1 parent 5304066 commit 51cebef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interceptors/auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func UnaryServerInterceptor(authFunc AuthFunc) grpc.UnaryServerInterceptor {
4949
}
5050
}
5151

52-
// StreamServerInterceptor returns a new unary server interceptors that performs per-request auth.
52+
// StreamServerInterceptor returns a new stream server interceptors that performs per-request auth.
5353
// NOTE(bwplotka): For more complex auth interceptor see https://github.com/grpc/grpc-go/blob/master/authz/grpc_authz_server_interceptors.go.
5454
func StreamServerInterceptor(authFunc AuthFunc) grpc.StreamServerInterceptor {
5555
return func(srv any, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error {

0 commit comments

Comments
 (0)