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

Method initialize

runners/BaseRunner.cpp:297–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void BaseRunner::initialize() {
298 load_config([self_id = actor_id(this)](td::Result<td::Unit> R) {
299 if (R.is_error()) {
300 td::actor::send_closure(self_id, &BaseRunner::initialization_failure,
301 R.move_as_error_prefix("failed to parse runner config: "));
302 } else {
303 td::actor::send_closure(self_id, &BaseRunner::load_config_completed);
304 }
305 });
306}
307void BaseRunner::load_config(td::Promise<td::Unit> promise) {
308 promise.set_value(td::Unit());
309}

Callers 6

mainFunction · 0.45
mainFunction · 0.45
initialize_tonlibMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
do_syncFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected