Small spelling fixes (unknow -> unknown) (#1868)
This commit is contained in:
committed by
Menghan Li
parent
12da026194
commit
2759199bf7
@ -118,7 +118,7 @@ func createConns(config *testpb.ClientConfig) ([]*grpc.ClientConn, func(), error
|
|||||||
case testpb.ClientType_SYNC_CLIENT:
|
case testpb.ClientType_SYNC_CLIENT:
|
||||||
case testpb.ClientType_ASYNC_CLIENT:
|
case testpb.ClientType_ASYNC_CLIENT:
|
||||||
default:
|
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.
|
// 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{})))
|
opts = append(opts, grpc.WithDefaultCallOptions(grpc.CallCustomCodec(byteBufCodec{})))
|
||||||
case *testpb.PayloadConfig_SimpleParams:
|
case *testpb.PayloadConfig_SimpleParams:
|
||||||
default:
|
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)
|
payloadRespSize = int(c.SimpleParams.RespSize)
|
||||||
payloadType = "protobuf"
|
payloadType = "protobuf"
|
||||||
default:
|
default:
|
||||||
return status.Errorf(codes.InvalidArgument, "unknow payload config: %v", config.PayloadConfig)
|
return status.Errorf(codes.InvalidArgument, "unknown payload config: %v", config.PayloadConfig)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -89,7 +89,7 @@ func startBenchmarkServer(config *testpb.ServerConfig, serverPort int) (*benchma
|
|||||||
case testpb.ServerType_ASYNC_SERVER:
|
case testpb.ServerType_ASYNC_SERVER:
|
||||||
case testpb.ServerType_ASYNC_GENERIC_SERVER:
|
case testpb.ServerType_ASYNC_GENERIC_SERVER:
|
||||||
default:
|
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.
|
// Set security options.
|
||||||
@ -137,7 +137,7 @@ func startBenchmarkServer(config *testpb.ServerConfig, serverPort int) (*benchma
|
|||||||
case *testpb.PayloadConfig_ComplexParams:
|
case *testpb.PayloadConfig_ComplexParams:
|
||||||
return nil, status.Errorf(codes.Unimplemented, "unsupported payload config: %v", config.PayloadConfig)
|
return nil, status.Errorf(codes.Unimplemented, "unsupported payload config: %v", config.PayloadConfig)
|
||||||
default:
|
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 {
|
} else {
|
||||||
// Start protobuf server if payload config is nil.
|
// Start protobuf server if payload config is nil.
|
||||||
|
|||||||
Reference in New Issue
Block a user