Unify stack traces for on_get_updates calls.
This commit is contained in:
parent
a3e277f7c0
commit
ac1295496c
@ -1062,6 +1062,10 @@ bool UpdatesManager::is_acceptable_update(const telegram_api::Update *update) co
|
||||
}
|
||||
|
||||
void UpdatesManager::on_get_updates(tl_object_ptr<telegram_api::Updates> &&updates_ptr, Promise<Unit> &&promise) {
|
||||
send_closure_later(actor_id(this), &UpdatesManager::on_get_updates_impl, std::move(updates_ptr), std::move(promise));
|
||||
}
|
||||
|
||||
void UpdatesManager::on_get_updates_impl(tl_object_ptr<telegram_api::Updates> updates_ptr, Promise<Unit> promise) {
|
||||
CHECK(updates_ptr != nullptr);
|
||||
promise = PromiseCreator::lambda(
|
||||
[promise = std::move(promise), update_ids = get_update_ids(updates_ptr.get())](Result<Unit> result) mutable {
|
||||
|
@ -321,6 +321,8 @@ class UpdatesManager final : public Actor {
|
||||
|
||||
void on_get_updates_state(tl_object_ptr<telegram_api::updates_state> &&state, const char *source);
|
||||
|
||||
void on_get_updates_impl(tl_object_ptr<telegram_api::Updates> updates_ptr, Promise<Unit> promise);
|
||||
|
||||
void on_server_pong(tl_object_ptr<telegram_api::updates_state> &&state);
|
||||
|
||||
void on_get_difference(tl_object_ptr<telegram_api::updates_Difference> &&difference_ptr);
|
||||
|
Loading…
Reference in New Issue
Block a user