From d6bf52530916d4e5094b259bfd12179b2b5f4b59 Mon Sep 17 00:00:00 2001 From: "yudong.cai" Date: Tue, 5 Nov 2019 17:45:02 +0800 Subject: [PATCH] #200 fix clang-format --- core/src/server/Config.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/server/Config.cpp b/core/src/server/Config.cpp index db2f3400aa..c567bc68ea 100644 --- a/core/src/server/Config.cpp +++ b/core/src/server/Config.cpp @@ -733,7 +733,7 @@ Config::CheckResourceConfigSearchResources(const std::vector& value if (cpu_found && !gpu_found) { std::string msg = - "Invalid search resource. Possible reason: resource_config.search_resources has only CPU resource."; + "Invalid search resource. Possible reason: resource_config.search_resources has only CPU resource."; return Status(SERVER_INVALID_ARGUMENT, msg); } return Status::OK(); @@ -741,9 +741,9 @@ Config::CheckResourceConfigSearchResources(const std::vector& value Status Config::CheckResourceConfigIndexBuildDevice(const std::string& value) { -// if (value == "cpu") { -// return Status::OK(); -// } + // if (value == "cpu") { + // return Status::OK(); + // } if (!CheckGpuDevice(value).ok()) { std::string msg = "Invalid index build device: " + value + ". Possible reason: resource_config.index_build_device does not match your hardware.";