| 400 | } |
| 401 | |
| 402 | td::actor::Task<td::Unit> BaseRunner::try_run_initialization_task(td::Slice name, td::actor::Task<td::Unit> task) { |
| 403 | auto r = co_await std::move(task).wrap(); |
| 404 | if (r.is_error()) { |
| 405 | initialization_failure(r.move_as_error_prefix(PSLICE() << "failed to " << name << ": ")); |
| 406 | co_return td::Status::Error("Unreachable"); |
| 407 | } |
| 408 | co_return td::Unit{}; |
| 409 | } |
| 410 | td::actor::Task<td::Unit> BaseRunner::coro_init() { |
| 411 | co_await try_run_initialization_task("initialize tonlib", initialize_tonlib()); |
| 412 | co_await try_run_initialization_task("get root smartcontract", get_root_contract_initial_state()); |
nothing calls this directly
no outgoing calls
no test coverage detected