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

Method sync

runners/TonlibWrapper.cpp:140–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 .last_synced_ts = static_cast<td::uint32>(blockchain_time)};
139}
140td::actor::Task<TonlibWrapper::SyncInfo> TonlibWrapper::sync() {
141 while (true) {
142 LOG(INFO) << "Syncing...";
143 auto r = co_await sync_once().wrap();
144 if (r.is_ok()) {
145 LOG(INFO) << "TONLIB SYNCED!";
146 co_return r.move_as_ok();
147 }
148 LOG(ERROR) << "Sync error: " << r.error();
149 }
150}
151
152} // namespace cocoon

Callers 2

initialize_tonlibMethod · 0.80
do_syncFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected