Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
1daidai1 committed Nov 29, 2024
1 parent ee3ef27 commit 4b81a7e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/CraneCtld/CtldGrpcServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -977,15 +977,6 @@ CtldServer::SubmitTaskToScheduler(std::unique_ptr<TaskInCtld> 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

0 comments on commit 4b81a7e

Please sign in to comment.