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

Method http_withdraw

runners/proxy/ProxyRunner.cpp:1643–1659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1641}
1642
1643std::string ProxyRunner::http_withdraw() {
1644 if (!sc_) {
1645 return wrap_short_answer_to_http("proxy is disabled");
1646 }
1647
1648 if (!sc_->ready_for_withdraw()) {
1649 return wrap_short_answer_to_http("nothing to withdraw");
1650 }
1651
1652 if (running_withdraw_) {
1653 return wrap_short_answer_to_http("withdraw already running");
1654 }
1655
1656 run_withdraw();
1657
1658 return wrap_short_answer_to_http("request sent");
1659}
1660
1661std::string ProxyRunner::http_change_worker_model(std::string worker_connection_id, std::string new_model_name) {
1662 auto R = td::to_integer_safe<td::int64>(worker_connection_id);

Callers

nothing calls this directly

Calls 1

ready_for_withdrawMethod · 0.80

Tested by

no test coverage detected