MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / receive_answer

Method receive_answer

runners/proxy/ProxyRunningRequest.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void ProxyRunningRequest::receive_answer(ton::tl_object_ptr<cocoon_api::proxy_queryAnswer> ans) {
117 ton::tl_object_ptr<cocoon_api::proxy_queryFinalInfo> final_info;
118 if (ans->is_completed_) {
119 final_info = create_final_info_from_old(std::move(ans->tokens_used_));
120 }
121 bool has_final_info = final_info != nullptr;
122 receive_answer_ex_impl(*ton::create_tl_object<cocoon_api::proxy_queryAnswerEx>(
123 ans->request_id_, std::move(ans->answer_), has_final_info ? 1 : 0, std::move(final_info)));
124}
125
126void ProxyRunningRequest::receive_answer_ex_impl(cocoon_api::proxy_queryAnswerErrorEx &ans) {
127 LOG(DEBUG) << "proxy request " << id_.to_hex() << ": received error";

Callers 3

return_error_strMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected