Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat:add power-control interface #439

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

feat:add power-control interface #439

wants to merge 3 commits into from

Conversation

huyongqii
Copy link
Collaborator

No description provided.

@L-Xiafeng L-Xiafeng added the enhancement New feature or request label Mar 10, 2025
Comment on lines 293 to 305
crane::grpc::plugin::GetCranedListHookReply PluginClient::GetCranedListHookSync(crane::grpc::CranedListType type) {
grpc::ClientContext context;
crane::grpc::plugin::GetCranedListHookRequest request;
crane::grpc::plugin::GetCranedListHookReply reply;

request.set_type(type);

auto status = m_stub_->GetCranedListHook(&context, request, &reply);
if (!status.ok()) {
CRANE_ERROR("[Plugin] Failed to get craned list: {}; {} (code: {})",
context.debug_error_string(), status.error_message(),
int(status.error_code()));
throw std::runtime_error("Failed to get craned list");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我们不用异常,这里Sync的实现需要和@Nativu5 check一下

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants