Skip to content

Commit 98652d7

Browse files
committed
Fix deprecated WithUnaryServerChain
1 parent e78abb5 commit 98652d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/driver/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"strings"
99

1010
"github.com/container-storage-interface/spec/lib/go/csi"
11-
grpc_middleware "github.com/grpc-ecosystem/go-grpc-middleware"
1211
grpc_zap "github.com/grpc-ecosystem/go-grpc-middleware/logging/zap"
1312
"google.golang.org/grpc"
1413
)
@@ -35,7 +34,7 @@ func (cs *cloudstackDriver) serve(ids csi.IdentityServer, ctrls csi.ControllerSe
3534

3635
// Log every request and payloads (request + response)
3736
opts := []grpc.ServerOption{
38-
grpc_middleware.WithUnaryServerChain(
37+
grpc.ChainUnaryInterceptor(
3938
grpc_zap.UnaryServerInterceptor(cs.logger),
4039
grpc_zap.PayloadUnaryServerInterceptor(cs.logger, func(context.Context, string, interface{}) bool { return true }),
4140
),

0 commit comments

Comments
 (0)