mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
rebase: grpc_middleware.WithUnaryServerChain
is deprecated
golangci-lint reports that `grpc_middleware.WithUnaryServerChain` is deprecated and `google.golang.org/grpc.ChainUnaryInterceptor` should be used instead. Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
parent
257ce599f7
commit
3d489781a0
@ -118,7 +118,7 @@ func NewMiddlewareServerOption(withMetrics bool) grpc.ServerOption {
|
||||
middleWare = append(middleWare, grpc_prometheus.UnaryServerInterceptor)
|
||||
}
|
||||
|
||||
return grpc_middleware.WithUnaryServerChain(middleWare...)
|
||||
return grpc.UnaryInterceptor(grpc_middleware.ChainUnaryServer(middleWare...))
|
||||
}
|
||||
|
||||
func getReqID(req interface{}) string {
|
||||
|
Loading…
Reference in New Issue
Block a user