mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 09:12:28 +00:00
options: fix interceptors, add defaulter and recovery
This commit is contained in:
@ -110,7 +110,7 @@ func newService(opts ...Option) (*service, error) {
|
||||
ui := grpcmiddleware.ChainUnaryServer(s.opts.unaryServerInterceptors...)
|
||||
s.inproc = s.inproc.WithServerUnaryInterceptor(ui)
|
||||
|
||||
si := grpcmiddleware.ChainStreamServer( /*TODO(adphi): add to options*/ )
|
||||
si := grpcmiddleware.ChainStreamServer(s.opts.streamServerInterceptors... )
|
||||
s.inproc = s.inproc.WithServerStreamInterceptor(si)
|
||||
|
||||
gopts := []grpc.ServerOption{
|
||||
|
Reference in New Issue
Block a user