|
@@ -58,10 +58,12 @@ func (s *rpcServer) Start(register RegisterFn) error {
|
|
serverinterceptors.UnaryCrashInterceptor(),
|
|
serverinterceptors.UnaryCrashInterceptor(),
|
|
serverinterceptors.UnaryStatInterceptor(s.metrics),
|
|
serverinterceptors.UnaryStatInterceptor(s.metrics),
|
|
serverinterceptors.UnaryPrometheusInterceptor(),
|
|
serverinterceptors.UnaryPrometheusInterceptor(),
|
|
|
|
+ serverinterceptors.UnaryBreakerInterceptor(),
|
|
}
|
|
}
|
|
unaryInterceptors = append(unaryInterceptors, s.unaryInterceptors...)
|
|
unaryInterceptors = append(unaryInterceptors, s.unaryInterceptors...)
|
|
streamInterceptors := []grpc.StreamServerInterceptor{
|
|
streamInterceptors := []grpc.StreamServerInterceptor{
|
|
serverinterceptors.StreamCrashInterceptor,
|
|
serverinterceptors.StreamCrashInterceptor,
|
|
|
|
+ serverinterceptors.StreamBreakerInterceptor,
|
|
}
|
|
}
|
|
streamInterceptors = append(streamInterceptors, s.streamInterceptors...)
|
|
streamInterceptors = append(streamInterceptors, s.streamInterceptors...)
|
|
options := append(s.options, WithUnaryServerInterceptors(unaryInterceptors...),
|
|
options := append(s.options, WithUnaryServerInterceptors(unaryInterceptors...),
|