| 138 | .last_synced_ts = static_cast<td::uint32>(blockchain_time)}; |
| 139 | } |
| 140 | td::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 |
no outgoing calls
no test coverage detected