Fix CE and some includes.
GitOrigin-RevId: e181d67a6ed36c9cbd444cf2282902b6a90881be
This commit is contained in:
parent
f207b1eed4
commit
86ef95e0a8
@ -9,6 +9,8 @@
|
||||
#include "td/telegram/Global.h"
|
||||
#include "td/telegram/net/NetQueryDispatcher.h"
|
||||
|
||||
#include "td/utils/Status.h"
|
||||
|
||||
namespace td {
|
||||
|
||||
void DelayDispatcher::send_with_callback(NetQueryPtr query, ActorShared<NetQueryCallback> callback) {
|
||||
|
@ -1261,7 +1261,7 @@ void ConnectionCreator::hangup() {
|
||||
|
||||
DcOptions ConnectionCreator::get_default_dc_options(bool is_test) {
|
||||
DcOptions res;
|
||||
enum class HostType { IPv4, IPv6, Url };
|
||||
enum class HostType : int32 { IPv4, IPv6, Url };
|
||||
auto add_ip_ports = [&res](int32 dc_id, const vector<string> &ips, const vector<int> &ports,
|
||||
HostType type = HostType::IPv4) {
|
||||
IPAddress ip_address;
|
||||
|
@ -52,20 +52,20 @@ void PollFlagsSet::clear() {
|
||||
}
|
||||
|
||||
StringBuilder &operator<<(StringBuilder &sb, PollFlags flags) {
|
||||
sb << "[";
|
||||
sb << '[';
|
||||
if (flags.can_read()) {
|
||||
sb << "R";
|
||||
sb << 'R';
|
||||
}
|
||||
if (flags.can_write()) {
|
||||
sb << "W";
|
||||
sb << 'W';
|
||||
}
|
||||
if (flags.can_close()) {
|
||||
sb << "C";
|
||||
sb << 'C';
|
||||
}
|
||||
if (flags.has_pending_error()) {
|
||||
sb << "E";
|
||||
sb << 'E';
|
||||
}
|
||||
return sb << "]";
|
||||
return sb << ']';
|
||||
}
|
||||
|
||||
} // namespace td
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "td/utils/misc.h"
|
||||
#include "td/utils/port/detail/NativeFd.h"
|
||||
#include "td/utils/port/PollFlags.h"
|
||||
#include "td/utils/port/thread.h"
|
||||
#include "td/utils/Slice.h"
|
||||
|
||||
#include <atomic>
|
||||
|
@ -13,6 +13,7 @@ char disable_linker_warning_about_empty_file_poll_cpp TD_UNUSED;
|
||||
#include "td/utils/format.h"
|
||||
#include "td/utils/logging.h"
|
||||
#include "td/utils/misc.h"
|
||||
#include "td/utils/ScopeGuard.h"
|
||||
#include "td/utils/Status.h"
|
||||
|
||||
namespace td {
|
||||
|
Loading…
Reference in New Issue
Block a user