diff --git a/benchmark/worker/benchmark_client.go b/benchmark/worker/benchmark_client.go index f2a26503..d0e8f05b 100644 --- a/benchmark/worker/benchmark_client.go +++ b/benchmark/worker/benchmark_client.go @@ -118,7 +118,7 @@ func createConns(config *testpb.ClientConfig) ([]*grpc.ClientConn, func(), error case testpb.ClientType_SYNC_CLIENT: case testpb.ClientType_ASYNC_CLIENT: default: - return nil, nil, status.Errorf(codes.InvalidArgument, "unknow client type: %v", config.ClientType) + return nil, nil, status.Errorf(codes.InvalidArgument, "unknown client type: %v", config.ClientType) } // Check and set security options. @@ -142,7 +142,7 @@ func createConns(config *testpb.ClientConfig) ([]*grpc.ClientConn, func(), error opts = append(opts, grpc.WithDefaultCallOptions(grpc.CallCustomCodec(byteBufCodec{}))) case *testpb.PayloadConfig_SimpleParams: default: - return nil, nil, status.Errorf(codes.InvalidArgument, "unknow payload config: %v", config.PayloadConfig) + return nil, nil, status.Errorf(codes.InvalidArgument, "unknown payload config: %v", config.PayloadConfig) } } @@ -177,7 +177,7 @@ func performRPCs(config *testpb.ClientConfig, conns []*grpc.ClientConn, bc *benc payloadRespSize = int(c.SimpleParams.RespSize) payloadType = "protobuf" default: - return status.Errorf(codes.InvalidArgument, "unknow payload config: %v", config.PayloadConfig) + return status.Errorf(codes.InvalidArgument, "unknown payload config: %v", config.PayloadConfig) } } diff --git a/benchmark/worker/benchmark_server.go b/benchmark/worker/benchmark_server.go index 9770776f..639c0fe1 100644 --- a/benchmark/worker/benchmark_server.go +++ b/benchmark/worker/benchmark_server.go @@ -89,7 +89,7 @@ func startBenchmarkServer(config *testpb.ServerConfig, serverPort int) (*benchma case testpb.ServerType_ASYNC_SERVER: case testpb.ServerType_ASYNC_GENERIC_SERVER: default: - return nil, status.Errorf(codes.InvalidArgument, "unknow server type: %v", config.ServerType) + return nil, status.Errorf(codes.InvalidArgument, "unknown server type: %v", config.ServerType) } // Set security options. @@ -137,7 +137,7 @@ func startBenchmarkServer(config *testpb.ServerConfig, serverPort int) (*benchma case *testpb.PayloadConfig_ComplexParams: return nil, status.Errorf(codes.Unimplemented, "unsupported payload config: %v", config.PayloadConfig) default: - return nil, status.Errorf(codes.InvalidArgument, "unknow payload config: %v", config.PayloadConfig) + return nil, status.Errorf(codes.InvalidArgument, "unknown payload config: %v", config.PayloadConfig) } } else { // Start protobuf server if payload config is nil.