We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff6c381 commit 0840111Copy full SHA for 0840111
components/common-go/baseserver/server.go
@@ -238,20 +238,16 @@ func (s *Server) newHTTPMux() *http.ServeMux {
238
}
239
240
func (s *Server) initializeGRPC() error {
241
- var opts []grpc.ServerOption
242
-
243
gitpod_grpc.SetupLogging()
244
245
- unary := grpc.ChainUnaryInterceptor(
+ unary := []grpc.UnaryServerInterceptor{
246
grpc_logrus.UnaryServerInterceptor(s.Logger()),
247
- )
248
- stream := grpc.ChainStreamInterceptor(
+ }
+ stream := []grpc.StreamServerInterceptor{
249
grpc_logrus.StreamServerInterceptor(s.Logger()),
250
251
252
- opts = append(opts, unary, stream)
253
254
- s.grpc = grpc.NewServer(opts...)
+ s.grpc = grpc.NewServer(gitpod_grpc.ServerOptionsWithInterceptors(stream, unary)...)
255
256
return nil
257
0 commit comments