From 4b81a7e97e9793800d2428fc6383312103e96386 Mon Sep 17 00:00:00 2001 From: db <1301189887@qq.com> Date: Fri, 29 Nov 2024 10:03:58 +0800 Subject: [PATCH] fix comments --- src/CraneCtld/CtldGrpcServer.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/CraneCtld/CtldGrpcServer.cpp b/src/CraneCtld/CtldGrpcServer.cpp index b1a44eca0..5033ef774 100644 --- a/src/CraneCtld/CtldGrpcServer.cpp +++ b/src/CraneCtld/CtldGrpcServer.cpp @@ -977,15 +977,6 @@ CtldServer::SubmitTaskToScheduler(std::unique_ptr task) { g_task_scheduler->SubmitTaskAsync(std::move(task)); return {std::move(future)}; } - - if (result.has_error()) { - CRANE_DEBUG("Task submission failed. Reason: {}.", result.error().second); - return result::fail(result.error().second); - } - - std::string error_message = std::string(CraneErrStr(result.error().first)) + - ": " + result.error().second; - return result::fail(error_message.c_str()); } } // namespace Ctld