File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ import (
65
65
"google.golang.org/grpc/benchmark/latency"
66
66
"google.golang.org/grpc/benchmark/stats"
67
67
"google.golang.org/grpc/credentials/insecure"
68
+ "google.golang.org/grpc/encoding/gzip"
68
69
"google.golang.org/grpc/experimental"
69
70
"google.golang.org/grpc/grpclog"
70
71
"google.golang.org/grpc/internal"
@@ -301,13 +302,8 @@ func makeClients(bf stats.Features) ([]testgrpc.BenchmarkServiceClient, func())
301
302
)
302
303
}
303
304
if bf .ModeCompressor == compModeGzip {
304
- sopts = append (sopts ,
305
- grpc .RPCCompressor (grpc .NewGZIPCompressor ()),
306
- grpc .RPCDecompressor (grpc .NewGZIPDecompressor ()),
307
- )
308
305
opts = append (opts ,
309
- grpc .WithCompressor (grpc .NewGZIPCompressor ()),
310
- grpc .WithDecompressor (grpc .NewGZIPDecompressor ()),
306
+ grpc .WithDefaultCallOptions (grpc .UseCompressor (gzip .Name )),
311
307
)
312
308
}
313
309
if bf .EnableKeepalive {
You can’t perform that action at this time.
0 commit comments