chore: remove simple methods, inlined (#2768)

This commit is contained in:
Kevin Wan
2023-01-09 00:55:13 +08:00
committed by GitHub
parent 26c541b9cb
commit 0c786ca849
6 changed files with 10 additions and 67 deletions

View File

@@ -63,8 +63,8 @@ func (s *rpcServer) Start(register RegisterFn) error {
unaryInterceptors = append(unaryInterceptors, s.unaryInterceptors...)
streamInterceptors := s.buildStreamInterceptors()
streamInterceptors = append(streamInterceptors, s.streamInterceptors...)
options := append(s.options, WithUnaryServerInterceptors(unaryInterceptors...),
WithStreamServerInterceptors(streamInterceptors...))
options := append(s.options, grpc.ChainUnaryInterceptor(unaryInterceptors...),
grpc.ChainStreamInterceptor(streamInterceptors...))
server := grpc.NewServer(options...)
register(server)