Skip to content

Commit

Permalink
fix callback server interface
Browse files Browse the repository at this point in the history
  • Loading branch information
jianzfb committed Oct 17, 2024
1 parent 204bdae commit 60e259b
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,15 @@ class ${servername}ServiceImpl final : public ${servername}::Service{

while(1){
std::string server_reply;
eagleeye::ServerStatus result = eagleeye::eagleeye_pipeline_server_call(server_key, "", server_reply, timeout);
eagleeye::ServerStatus result = eagleeye::eagleeye_pipeline_server_call(server_key, std::vector<eagleeye::RequestData>{}, server_reply, timeout);

${servername}MessageReply reply;
if(result == eagleeye::SERVER_NOT_EXIST){
reply.set_code(1);
writer->Write(reply);
return Status::OK;
}

reply.set_code(0);
reply.set_data(server_reply);
writer->Write(reply);
Expand Down

0 comments on commit 60e259b

Please sign in to comment.