aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/AutoDownloadSettings.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2021-11-08 14:19:57 +0300
committerlevlam <levlam@telegram.org>2021-11-08 14:19:57 +0300
commit5578ecc6b8ce442b3ae23dbe3ca9d51be2a3c4e1 (patch)
tree63600c693a37e668e99128f7144cc806be39b465 /td/telegram/AutoDownloadSettings.cpp
parent365965d1fb357a8e45cffcffaf3e959ff351364b (diff)
Remove NetQuery id from ResultHandler and NetActor.
Diffstat (limited to 'td/telegram/AutoDownloadSettings.cpp')
-rw-r--r--td/telegram/AutoDownloadSettings.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/td/telegram/AutoDownloadSettings.cpp b/td/telegram/AutoDownloadSettings.cpp
index 59ffe2386..873e57493 100644
--- a/td/telegram/AutoDownloadSettings.cpp
+++ b/td/telegram/AutoDownloadSettings.cpp
@@ -42,10 +42,10 @@ class GetAutoDownloadSettingsQuery final : public Td::ResultHandler {
send_query(G()->net_query_creator().create(telegram_api::account_getAutoDownloadSettings()));
}
- void on_result(uint64 id, BufferSlice packet) final {
+ void on_result(BufferSlice packet) final {
auto result_ptr = fetch_result<telegram_api::account_getAutoDownloadSettings>(packet);
if (result_ptr.is_error()) {
- return on_error(id, result_ptr.move_as_error());
+ return on_error(result_ptr.move_as_error());
}
auto settings = result_ptr.move_as_ok();
@@ -54,7 +54,7 @@ class GetAutoDownloadSettingsQuery final : public Td::ResultHandler {
convert_auto_download_settings(settings->high_)));
}
- void on_error(uint64 id, Status status) final {
+ void on_error(Status status) final {
promise_.set_error(std::move(status));
}
};
@@ -98,17 +98,17 @@ class SaveAutoDownloadSettingsQuery final : public Td::ResultHandler {
flags, false /*ignored*/, false /*ignored*/, get_input_auto_download_settings(settings))));
}
- void on_result(uint64 id, BufferSlice packet) final {
+ void on_result(BufferSlice packet) final {
auto result_ptr = fetch_result<telegram_api::account_saveAutoDownloadSettings>(packet);
if (result_ptr.is_error()) {
- return on_error(id, result_ptr.move_as_error());
+ return on_error(result_ptr.move_as_error());
}
LOG(INFO) << "SaveAutoDownloadSettingsQuery returned " << result_ptr.ok();
promise_.set_value(Unit());
}
- void on_error(uint64 id, Status status) final {
+ void on_error(Status status) final {
promise_.set_error(std::move(status));
}
};