Skip to content

Commit 967013c

Browse files
committed
style: upgrade gRPC version
1 parent a94c276 commit 967013c

30 files changed

+80
-3403
lines changed

internal/server/grpc.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"net/http"
99
"time"
1010

11-
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
1211
"google.golang.org/grpc"
1312
"google.golang.org/grpc/codes"
1413
"google.golang.org/grpc/status"
@@ -204,7 +203,7 @@ func (s *grpcServer) unaryServerOptions() grpc.ServerOption {
204203
unaryServerInterceptors = append(unaryServerInterceptors, interceptor.UnaryServerTracing())
205204
}
206205

207-
return grpc_middleware.WithUnaryServerChain(unaryServerInterceptors...)
206+
return grpc.ChainUnaryInterceptor(unaryServerInterceptors...)
208207
}
209208

210209
// setting up stream server interceptors
@@ -265,7 +264,7 @@ func (s *grpcServer) streamServerOptions() grpc.ServerOption {
265264
streamServerInterceptors = append(streamServerInterceptors, interceptor.StreamServerTracing())
266265
}
267266

268-
return grpc_middleware.WithStreamServerChain(streamServerInterceptors...)
267+
return grpc.ChainStreamInterceptor(streamServerInterceptors...)
269268
}
270269

271270
func (s *grpcServer) getOptions() []grpc.ServerOption {

pkg/gohttp/README.md

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)