Skip to content

Commit

Permalink
Restore interceptors
Browse files Browse the repository at this point in the history
  • Loading branch information
altafan committed Feb 4, 2025
1 parent 395ad45 commit 9de9fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/internal/interface/grpc/interceptors/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
// UnaryInterceptor returns the unary interceptor
func UnaryInterceptor(svc *macaroons.Service) grpc.ServerOption {
return grpc.UnaryInterceptor(middleware.ChainUnaryServer(
// unaryPanicRecoveryInterceptor(),
unaryPanicRecoveryInterceptor(),
unaryLogger,
unaryMacaroonAuthHandler(svc),
))
Expand All @@ -18,7 +18,7 @@ func UnaryInterceptor(svc *macaroons.Service) grpc.ServerOption {
// StreamInterceptor returns the stream interceptor with a logrus log
func StreamInterceptor(svc *macaroons.Service) grpc.ServerOption {
return grpc.StreamInterceptor(middleware.ChainStreamServer(
// streamPanicRecoveryInterceptor(),
streamPanicRecoveryInterceptor(),
streamLogger,
streamMacaroonAuthHandler(svc),
))
Expand Down

0 comments on commit 9de9fd3

Please sign in to comment.