Fix includes and formatting.

This commit is contained in:
levlam 2022-02-08 00:04:34 +03:00
parent 86bceb2972
commit bcc2adeb47
53 changed files with 75 additions and 103 deletions

View File

@ -18,9 +18,8 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
namespace td { namespace td {

View File

@ -14,7 +14,6 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -19,10 +19,10 @@
#include "td/actor/PromiseFuture.h" #include "td/actor/PromiseFuture.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include <memory> #include <memory>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -13,11 +13,10 @@
#include "td/actor/actor.h" #include "td/actor/actor.h"
#include "td/actor/PromiseFuture.h" #include "td/actor/PromiseFuture.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include <map> #include <map>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -16,6 +16,7 @@
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/crypto.h" #include "td/utils/crypto.h"
#include "td/utils/ExitGuard.h" #include "td/utils/ExitGuard.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/misc.h" #include "td/utils/misc.h"
#include "td/utils/MpscPollableQueue.h" #include "td/utils/MpscPollableQueue.h"
@ -29,7 +30,6 @@
#include <memory> #include <memory>
#include <mutex> #include <mutex>
#include <queue> #include <queue>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
namespace td { namespace td {

View File

@ -10,6 +10,7 @@
#include "td/telegram/td_api_json.h" #include "td/telegram/td_api_json.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/JsonBuilder.h" #include "td/utils/JsonBuilder.h"
#include "td/utils/port/thread_local.h" #include "td/utils/port/thread_local.h"
#include "td/utils/SliceBuilder.h" #include "td/utils/SliceBuilder.h"

View File

@ -8,13 +8,13 @@
#include "td/telegram/Client.h" #include "td/telegram/Client.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include <atomic> #include <atomic>
#include <cstdint> #include <cstdint>
#include <mutex> #include <mutex>
#include <string> #include <string>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -48,6 +48,7 @@
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/crypto.h" #include "td/utils/crypto.h"
#include "td/utils/emoji.h" #include "td/utils/emoji.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/format.h" #include "td/utils/format.h"
#include "td/utils/JsonBuilder.h" #include "td/utils/JsonBuilder.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
@ -61,9 +62,9 @@
#include "td/utils/tl_parsers.h" #include "td/utils/tl_parsers.h"
#include "td/utils/UInt.h" #include "td/utils/UInt.h"
#include "td/utils/FlatHashMap.h"
#include <functional> #include <functional>
#include <memory> #include <memory>
#include "td/utils/FlatHashMap.h"
#include <utility> #include <utility>
namespace td { namespace td {

View File

@ -9,10 +9,10 @@
#include "td/db/KeyValueSyncInterface.h" #include "td/db/KeyValueSyncInterface.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include <memory> #include <memory>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -40,6 +40,7 @@
#include "td/actor/Timeout.h" #include "td/actor/Timeout.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Hints.h" #include "td/utils/Hints.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/StringBuilder.h" #include "td/utils/StringBuilder.h"
@ -47,7 +48,7 @@
#include <functional> #include <functional>
#include <memory> #include <memory>
#include "td/utils/FlatHashMap.h" #include <unordered_map>
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -13,11 +13,11 @@
#include "td/actor/PromiseFuture.h" #include "td/actor/PromiseFuture.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include <mutex> #include <mutex>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -12,11 +12,10 @@
#include "td/telegram/telegram_api.h" #include "td/telegram/telegram_api.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/StringBuilder.h" #include "td/utils/StringBuilder.h"
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {
class DialogFilter { class DialogFilter {

View File

@ -18,8 +18,8 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
#include <utility> #include <utility>
namespace td { namespace td {

View File

@ -20,13 +20,12 @@
#include "td/actor/PromiseFuture.h" #include "td/actor/PromiseFuture.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/Variant.h" #include "td/utils/Variant.h"
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {
class Td; class Td;

View File

@ -18,6 +18,7 @@
#include "td/actor/SchedulerLocalStorage.h" #include "td/actor/SchedulerLocalStorage.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
@ -26,7 +27,6 @@
#include <atomic> #include <atomic>
#include <memory> #include <memory>
#include <mutex> #include <mutex>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {
class AnimationsManager; class AnimationsManager;

View File

@ -21,9 +21,9 @@
#include "td/actor/Timeout.h" #include "td/actor/Timeout.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
#include <utility> #include <utility>
namespace td { namespace td {
@ -385,8 +385,7 @@ class GroupCallManager final : public Actor {
string pending_group_call_join_params_; string pending_group_call_join_params_;
FlatHashMap<InputGroupCallId, unique_ptr<GroupCallParticipants>, InputGroupCallIdHash> FlatHashMap<InputGroupCallId, unique_ptr<GroupCallParticipants>, InputGroupCallIdHash> group_call_participants_;
group_call_participants_;
FlatHashMap<DialogId, vector<InputGroupCallId>, DialogIdHash> participant_id_to_group_call_id_; FlatHashMap<DialogId, vector<InputGroupCallId>, DialogIdHash> participant_id_to_group_call_id_;
FlatHashMap<GroupCallId, unique_ptr<GroupCallRecentSpeakers>, GroupCallIdHash> group_call_recent_speakers_; FlatHashMap<GroupCallId, unique_ptr<GroupCallRecentSpeakers>, GroupCallIdHash> group_call_recent_speakers_;

View File

@ -23,9 +23,9 @@
#include "td/actor/Timeout.h" #include "td/actor/Timeout.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
#include <utility> #include <utility>
namespace td { namespace td {

View File

@ -771,25 +771,17 @@ td_api::object_ptr<td_api::LanguagePackStringValue> LanguagePackManager::get_lan
} }
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object( td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(
const std::pair<string, string> &str) { const string &key, const string &value) {
return td_api::make_object<td_api::languagePackString>(str.first, get_language_pack_string_value_object(str.second)); return td_api::make_object<td_api::languagePackString>(key, get_language_pack_string_value_object(value));
}
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(
const string &a, const string &b) {
return td_api::make_object<td_api::languagePackString>(a, get_language_pack_string_value_object(b));
} }
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object( td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(
const std::pair<string, PluralizedString> &str) { const string &key, const PluralizedString &value) {
return td_api::make_object<td_api::languagePackString>(str.first, get_language_pack_string_value_object(str.second)); return td_api::make_object<td_api::languagePackString>(key, get_language_pack_string_value_object(value));
}
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(
const string &a, const PluralizedString &b) {
return td_api::make_object<td_api::languagePackString>(a, get_language_pack_string_value_object(b));
} }
td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(const string &str) { td_api::object_ptr<td_api::languagePackString> LanguagePackManager::get_language_pack_string_object(const string &key) {
return td_api::make_object<td_api::languagePackString>(str, get_language_pack_string_value_object()); return td_api::make_object<td_api::languagePackString>(key, get_language_pack_string_value_object());
} }
td_api::object_ptr<td_api::LanguagePackStringValue> LanguagePackManager::get_language_pack_string_value_object( td_api::object_ptr<td_api::LanguagePackStringValue> LanguagePackManager::get_language_pack_string_value_object(

View File

@ -15,11 +15,11 @@
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/Container.h" #include "td/utils/Container.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include <mutex> #include <mutex>
#include "td/utils/FlatHashMap.h"
#include <utility> #include <utility>
namespace td { namespace td {
@ -125,15 +125,11 @@ class LanguagePackManager final : public NetQueryCallback {
const PluralizedString &value); const PluralizedString &value);
static td_api::object_ptr<td_api::LanguagePackStringValue> get_language_pack_string_value_object(); static td_api::object_ptr<td_api::LanguagePackStringValue> get_language_pack_string_value_object();
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object( static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(const string &key,
const std::pair<string, string> &str); const string &value);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object( static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(const string &key,
const string &, const string &); const PluralizedString &value);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object( static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(const string &key);
const std::pair<string, PluralizedString> &str);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(
const string &, const PluralizedString &);
static td_api::object_ptr<td_api::languagePackString> get_language_pack_string_object(const string &str);
static td_api::object_ptr<td_api::LanguagePackStringValue> get_language_pack_string_value_object( static td_api::object_ptr<td_api::LanguagePackStringValue> get_language_pack_string_value_object(
const Language *language, const string &key); const Language *language, const string &key);

View File

@ -17,9 +17,9 @@
#include "td/actor/PromiseFuture.h" #include "td/actor/PromiseFuture.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/StringBuilder.h" #include "td/utils/StringBuilder.h"
#include "td/utils/FlatHashMap.h"
#include <utility> #include <utility>
namespace td { namespace td {

View File

@ -1,4 +1,6 @@
// //
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2022
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying // Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// //
@ -81,7 +83,6 @@
#include <limits> #include <limits>
#include <tuple> #include <tuple>
#include <type_traits> #include <type_traits>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>
@ -36572,8 +36573,8 @@ bool MessagesManager::set_dialog_order(Dialog *d, int64 new_order, bool need_sen
} }
void MessagesManager::update_dialog_lists( void MessagesManager::update_dialog_lists(
Dialog *d, FlatHashMap<DialogListId, DialogPositionInList, DialogListIdHash> &&old_positions, Dialog *d, FlatHashMap<DialogListId, DialogPositionInList, DialogListIdHash> &&old_positions, bool need_send_update,
bool need_send_update, bool is_loaded_from_database, const char *source) { bool is_loaded_from_database, const char *source) {
if (td_->auth_manager_->is_bot()) { if (td_->auth_manager_->is_bot()) {
return; return;
} }

View File

@ -66,6 +66,7 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/ChangesProcessor.h" #include "td/utils/ChangesProcessor.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Heap.h" #include "td/utils/Heap.h"
#include "td/utils/Hints.h" #include "td/utils/Hints.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
@ -73,14 +74,11 @@
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/StringBuilder.h" #include "td/utils/StringBuilder.h"
#include "td/utils/FlatHashMap.h"
#include <array> #include <array>
#include <functional> #include <functional>
#include <map> #include <map>
#include <memory> #include <memory>
#include <set> #include <set>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>
@ -1326,11 +1324,11 @@ class MessagesManager final : public Actor {
bool suffix_load_done_ = false; bool suffix_load_done_ = false;
bool suffix_load_has_query_ = false; bool suffix_load_has_query_ = false;
int32 pts = 0; // for channels only int32 pts = 0; // for channels only
int32 pending_read_channel_inbox_pts = 0; // for channels only int32 pending_read_channel_inbox_pts = 0; // for channels only
int32 pending_read_channel_inbox_server_unread_count = 0; // for channels only int32 pending_read_channel_inbox_server_unread_count = 0; // for channels only
MessageId pending_read_channel_inbox_max_message_id; // for channels only MessageId pending_read_channel_inbox_max_message_id; // for channels only
FlatHashMap<int64, MessageId> random_id_to_message_id; // for secret chats only FlatHashMap<int64, MessageId> random_id_to_message_id; // for secret chats only
MessageId last_assigned_message_id; // identifier of the last local or yet unsent message, assigned after MessageId last_assigned_message_id; // identifier of the last local or yet unsent message, assigned after
// application start, used to guarantee that all assigned message identifiers // application start, used to guarantee that all assigned message identifiers
@ -3022,8 +3020,7 @@ class MessagesManager final : public Actor {
bool set_dialog_order(Dialog *d, int64 new_order, bool need_send_update, bool is_loaded_from_database, bool set_dialog_order(Dialog *d, int64 new_order, bool need_send_update, bool is_loaded_from_database,
const char *source); const char *source);
void update_dialog_lists(Dialog *d, void update_dialog_lists(Dialog *d, FlatHashMap<DialogListId, DialogPositionInList, DialogListIdHash> &&old_positions,
FlatHashMap<DialogListId, DialogPositionInList, DialogListIdHash> &&old_positions,
bool need_send_update, bool is_loaded_from_database, const char *source); bool need_send_update, bool is_loaded_from_database, const char *source);
void update_last_dialog_date(FolderId folder_id); void update_last_dialog_date(FolderId folder_id);
@ -3326,10 +3323,9 @@ class MessagesManager final : public Actor {
FlatHashMap<int64, FullMessageId> being_sent_messages_; // message_random_id -> message FlatHashMap<int64, FullMessageId> being_sent_messages_; // message_random_id -> message
FlatHashMap<FullMessageId, MessageId, FullMessageIdHash> FlatHashMap<FullMessageId, MessageId, FullMessageIdHash> update_message_ids_; // new_message_id -> temporary_id
update_message_ids_; // new_message_id -> temporary_id
FlatHashMap<DialogId, FlatHashMap<ScheduledServerMessageId, MessageId, ScheduledServerMessageIdHash>, FlatHashMap<DialogId, FlatHashMap<ScheduledServerMessageId, MessageId, ScheduledServerMessageIdHash>,
DialogIdHash> DialogIdHash>
update_scheduled_message_ids_; // new_message_id -> temporary_id update_scheduled_message_ids_; // new_message_id -> temporary_id
const char *debug_add_message_to_dialog_fail_reason_ = ""; const char *debug_add_message_to_dialog_fail_reason_ = "";
@ -3444,7 +3440,7 @@ class MessagesManager final : public Actor {
FlatHashMap<int64, td_api::object_ptr<td_api::messageCalendar>> found_dialog_message_calendars_; FlatHashMap<int64, td_api::object_ptr<td_api::messageCalendar>> found_dialog_message_calendars_;
FlatHashMap<int64, std::pair<int32, vector<MessageId>>> FlatHashMap<int64, std::pair<int32, vector<MessageId>>>
found_dialog_messages_; // random_id -> [total_count, [message_id]...] found_dialog_messages_; // random_id -> [total_count, [message_id]...]
FlatHashMap<int64, DialogId> found_dialog_messages_dialog_id_; // random_id -> dialog_id FlatHashMap<int64, DialogId> found_dialog_messages_dialog_id_; // random_id -> dialog_id
FlatHashMap<int64, std::pair<int32, vector<FullMessageId>>> FlatHashMap<int64, std::pair<int32, vector<FullMessageId>>>
found_messages_; // random_id -> [total_count, [full_message_id]...] found_messages_; // random_id -> [total_count, [full_message_id]...]
@ -3578,8 +3574,7 @@ class MessagesManager final : public Actor {
ChangesProcessor<unique_ptr<PendingSecretMessage>> pending_secret_messages_; ChangesProcessor<unique_ptr<PendingSecretMessage>> pending_secret_messages_;
FlatHashMap<DialogId, vector<DialogId>, DialogIdHash> FlatHashMap<DialogId, vector<DialogId>, DialogIdHash> pending_add_dialog_last_database_message_dependent_dialogs_;
pending_add_dialog_last_database_message_dependent_dialogs_;
FlatHashMap<DialogId, std::pair<int32, unique_ptr<Message>>, DialogIdHash> FlatHashMap<DialogId, std::pair<int32, unique_ptr<Message>>, DialogIdHash>
pending_add_dialog_last_database_message_; // dialog -> dependency counter + message pending_add_dialog_last_database_message_; // dialog -> dependency counter + message

View File

@ -61,7 +61,6 @@
#include <algorithm> #include <algorithm>
#include <iterator> #include <iterator>
#include <limits> #include <limits>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
namespace td { namespace td {

View File

@ -24,6 +24,7 @@
#include "td/actor/Timeout.h" #include "td/actor/Timeout.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/StringBuilder.h" #include "td/utils/StringBuilder.h"
@ -31,7 +32,6 @@
#include <functional> #include <functional>
#include <map> #include <map>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
namespace td { namespace td {

View File

@ -44,7 +44,6 @@
#include <algorithm> #include <algorithm>
#include <limits> #include <limits>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -21,9 +21,9 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -10,11 +10,11 @@
#include "td/actor/PromiseFuture.h" #include "td/actor/PromiseFuture.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include <queue> #include <queue>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -18,10 +18,10 @@
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/Container.h" #include "td/utils/Container.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include <map> #include <map>
#include "td/utils/FlatHashMap.h"
#include <utility> #include <utility>
namespace td { namespace td {

View File

@ -11,11 +11,11 @@
#include "td/actor/actor.h" #include "td/actor/actor.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Random.h" #include "td/utils/Random.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include <limits> #include <limits>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -16,9 +16,8 @@
#include "td/actor/Timeout.h" #include "td/actor/Timeout.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h"
namespace td { namespace td {

View File

@ -46,6 +46,7 @@
#include "td/utils/algorithm.h" #include "td/utils/algorithm.h"
#include "td/utils/base64.h" #include "td/utils/base64.h"
#include "td/utils/emoji.h" #include "td/utils/emoji.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/format.h" #include "td/utils/format.h"
#include "td/utils/JsonBuilder.h" #include "td/utils/JsonBuilder.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"

View File

@ -25,13 +25,13 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Hints.h" #include "td/utils/Hints.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include <memory> #include <memory>
#include <tuple> #include <tuple>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -26,12 +26,12 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/Container.h" #include "td/utils/Container.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include <memory> #include <memory>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -14,7 +14,6 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -14,7 +14,6 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -12,7 +12,6 @@
#include "td/telegram/telegram_api.h" #include "td/telegram/telegram_api.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -13,9 +13,8 @@
#include "td/telegram/telegram_api.h" #include "td/telegram/telegram_api.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/Slice.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
namespace td { namespace td {

View File

@ -20,9 +20,9 @@
#include "td/actor/Timeout.h" #include "td/actor/Timeout.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>
@ -192,8 +192,7 @@ class WebPagesManager final : public Actor {
FlatHashMap<WebPageId, std::unordered_set<FullMessageId, FullMessageIdHash>, WebPageIdHash> web_page_messages_; FlatHashMap<WebPageId, std::unordered_set<FullMessageId, FullMessageIdHash>, WebPageIdHash> web_page_messages_;
FlatHashMap<WebPageId, FlatHashMap<int64, std::pair<string, Promise<Unit>>>, WebPageIdHash> FlatHashMap<WebPageId, FlatHashMap<int64, std::pair<string, Promise<Unit>>>, WebPageIdHash> pending_get_web_pages_;
pending_get_web_pages_;
int64 get_web_page_preview_request_id_ = 1; int64 get_web_page_preview_request_id_ = 1;
FlatHashMap<int64, WebPageId> got_web_page_previews_; FlatHashMap<int64, WebPageId> got_web_page_previews_;

View File

@ -25,6 +25,7 @@
#include "td/utils/ExitGuard.h" #include "td/utils/ExitGuard.h"
#include "td/utils/FileLog.h" #include "td/utils/FileLog.h"
#include "td/utils/filesystem.h" #include "td/utils/filesystem.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/format.h" #include "td/utils/format.h"
#include "td/utils/JsonBuilder.h" #include "td/utils/JsonBuilder.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
@ -63,7 +64,6 @@
#include <memory> #include <memory>
#include <queue> #include <queue>
#include <tuple> #include <tuple>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -27,6 +27,7 @@
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/Container.h" #include "td/utils/Container.h"
#include "td/utils/Enumerator.h" #include "td/utils/Enumerator.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/optional.h" #include "td/utils/optional.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
@ -36,7 +37,6 @@
#include <map> #include <map>
#include <memory> #include <memory>
#include <set> #include <set>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -10,11 +10,11 @@
#include "td/telegram/files/FileType.h" #include "td/telegram/files/FileType.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/StringBuilder.h" #include "td/utils/StringBuilder.h"
#include "td/utils/tl_helpers.h" #include "td/utils/tl_helpers.h"
#include <array> #include <array>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -19,6 +19,7 @@
#include "td/db/SqliteKeyValue.h" #include "td/db/SqliteKeyValue.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/format.h" #include "td/utils/format.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/misc.h" #include "td/utils/misc.h"
@ -31,7 +32,6 @@
#include "td/utils/tl_parsers.h" #include "td/utils/tl_parsers.h"
#include <functional> #include <functional>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
namespace td { namespace td {

View File

@ -26,6 +26,7 @@
#include "td/utils/BufferedFd.h" #include "td/utils/BufferedFd.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/FloodControlStrict.h" #include "td/utils/FloodControlStrict.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/port/IPAddress.h" #include "td/utils/port/IPAddress.h"
@ -37,7 +38,6 @@
#include <map> #include <map>
#include <memory> #include <memory>
#include <set> #include <set>
#include "td/utils/FlatHashMap.h"
#include <utility> #include <utility>
namespace td { namespace td {

View File

@ -22,6 +22,7 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/CancellationToken.h" #include "td/utils/CancellationToken.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/List.h" #include "td/utils/List.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/StringBuilder.h" #include "td/utils/StringBuilder.h"
@ -32,7 +33,6 @@
#include <functional> #include <functional>
#include <map> #include <map>
#include <memory> #include <memory>
#include "td/utils/FlatHashMap.h"
#include <unordered_set> #include <unordered_set>
#include <utility> #include <utility>

View File

@ -15,6 +15,7 @@
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/misc.h" #include "td/utils/misc.h"
#include "td/utils/port/RwMutex.h" #include "td/utils/port/RwMutex.h"
@ -25,7 +26,7 @@
#include "td/utils/tl_storers.h" #include "td/utils/tl_storers.h"
#include <memory> #include <memory>
#include "td/utils/FlatHashMap.h" #include <unordered_map>
#include <utility> #include <utility>
namespace td { namespace td {

View File

@ -9,9 +9,8 @@
#include "td/actor/PromiseFuture.h" #include "td/actor/PromiseFuture.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/Slice.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
namespace td { namespace td {

View File

@ -6,9 +6,8 @@
// //
#pragma once #pragma once
#include "td/utils/Slice.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h"
namespace td { namespace td {

View File

@ -9,12 +9,11 @@
#include "td/db/SqliteDb.h" #include "td/db/SqliteDb.h"
#include "td/db/SqliteStatement.h" #include "td/db/SqliteStatement.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/SliceBuilder.h" #include "td/utils/SliceBuilder.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {
class SqliteKeyValue { class SqliteKeyValue {

View File

@ -11,9 +11,9 @@
#include "td/actor/PromiseFuture.h" #include "td/actor/PromiseFuture.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/FlatHashMap.h"
#include <memory> #include <memory>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -11,6 +11,7 @@
#include "td/db/binlog/BinlogHelper.h" #include "td/db/binlog/BinlogHelper.h"
#include "td/db/binlog/BinlogInterface.h" #include "td/db/binlog/BinlogInterface.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/misc.h" #include "td/utils/misc.h"
#include "td/utils/Random.h" #include "td/utils/Random.h"
#include "td/utils/StorerBase.h" #include "td/utils/StorerBase.h"
@ -19,7 +20,6 @@
#include "td/utils/tl_storers.h" #include "td/utils/tl_storers.h"
#include <set> #include <set>
#include "td/utils/FlatHashMap.h"
namespace td { namespace td {

View File

@ -8,10 +8,10 @@
#include "td/db/SeqKeyValue.h" #include "td/db/SeqKeyValue.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/port/RwMutex.h" #include "td/utils/port/RwMutex.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/FlatHashMap.h"
#include <utility> #include <utility>
namespace td { namespace td {

View File

@ -1,5 +1,5 @@
#include "td/utils/tests.h"
#include "td/utils/FlatHashMap.h" #include "td/utils/FlatHashMap.h"
#include "td/utils/tests.h"
#include <array> #include <array>
#include <string> #include <string>

View File

@ -23,6 +23,7 @@
#include "td/utils/base64.h" #include "td/utils/base64.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/filesystem.h" #include "td/utils/filesystem.h"
#include "td/utils/FlatHashMap.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/port/FileFd.h" #include "td/utils/port/FileFd.h"
#include "td/utils/port/thread.h" #include "td/utils/port/thread.h"
@ -34,7 +35,6 @@
#include <limits> #include <limits>
#include <map> #include <map>
#include <memory> #include <memory>
#include <unordered_map>
template <class ContainerT> template <class ContainerT>
static typename ContainerT::value_type &rand_elem(ContainerT &cont) { static typename ContainerT::value_type &rand_elem(ContainerT &cont) {