Skip to content

Commit 1c0572a

Browse files
authored
benchmark: fix package used to reference service to use grpc suffix instead of pb (#6362)
1 parent 7a7caf3 commit 1c0572a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/benchmain/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ func unconstrainedStreamBenchmark(start startFunc, stop ucStopFunc, bf stats.Fea
275275
// service. The client is configured using the different options in the passed
276276
// 'bf'. Also returns a cleanup function to close the client and release
277277
// resources.
278-
func makeClients(bf stats.Features) ([]testpb.BenchmarkServiceClient, func()) {
278+
func makeClients(bf stats.Features) ([]testgrpc.BenchmarkServiceClient, func()) {
279279
nw := &latency.Network{Kbps: bf.Kbps, Latency: bf.Latency, MTU: bf.MTU}
280280
opts := []grpc.DialOption{}
281281
sopts := []grpc.ServerOption{}
@@ -356,7 +356,7 @@ func makeClients(bf stats.Features) ([]testpb.BenchmarkServiceClient, func()) {
356356
lis = nw.Listener(lis)
357357
stopper := bm.StartServer(bm.ServerInfo{Type: "protobuf", Listener: lis}, sopts...)
358358
conns := make([]*grpc.ClientConn, bf.Connections)
359-
clients := make([]testpb.BenchmarkServiceClient, bf.Connections)
359+
clients := make([]testgrpc.BenchmarkServiceClient, bf.Connections)
360360
for cn := 0; cn < bf.Connections; cn++ {
361361
conns[cn] = bm.NewClientConn("" /* target not used */, opts...)
362362
clients[cn] = testgrpc.NewBenchmarkServiceClient(conns[cn])

0 commit comments

Comments
 (0)