diff --git a/td/telegram/InlineQueriesManager.cpp b/td/telegram/InlineQueriesManager.cpp index 5ce024cc1..a1546fd0f 100644 --- a/td/telegram/InlineQueriesManager.cpp +++ b/td/telegram/InlineQueriesManager.cpp @@ -1682,7 +1682,7 @@ void InlineQueriesManager::on_get_inline_query_results(DialogId dialog_id, UserI article->hide_url_ = true; } else { LOG_IF(ERROR, result->url_ != article->url_) - << "Url has changed from " << article->url_ << " to " << result->url_; + << "URL has changed from " << article->url_ << " to " << result->url_; article->hide_url_ = false; } article->title_ = std::move(result->title_); diff --git a/td/telegram/WebPagesManager.cpp b/td/telegram/WebPagesManager.cpp index 0539b355f..95e91dfe4 100644 --- a/td/telegram/WebPagesManager.cpp +++ b/td/telegram/WebPagesManager.cpp @@ -696,7 +696,7 @@ void WebPagesManager::on_get_web_page_by_url(const string &url, WebPageId web_pa } if (cached_web_page_id.is_valid() && web_page_id.is_valid() && web_page_id != cached_web_page_id) { - LOG(ERROR) << "Url \"" << url << "\" preview is changed from " << cached_web_page_id << " to " << web_page_id; + LOG(ERROR) << "URL \"" << url << "\" preview is changed from " << cached_web_page_id << " to " << web_page_id; } cached_web_page_id = web_page_id; diff --git a/td/telegram/logevent/SecretChatEvent.h b/td/telegram/logevent/SecretChatEvent.h index 45f07bf66..3218a072e 100644 --- a/td/telegram/logevent/SecretChatEvent.h +++ b/td/telegram/logevent/SecretChatEvent.h @@ -219,7 +219,7 @@ inline StringBuilder &operator<<(StringBuilder &sb, const EncryptedInputFile &fi } // LogEvents -// TODO: Qts and SeqNoState could be just Logevents that are updated during regenerate +// TODO: QTS and SeqNoState could be just Logevents that are updated during regenerate class InboundSecretMessage final : public SecretChatLogEventBase { public: static constexpr Type type = SecretChatEvent::Type::InboundSecretMessage; diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index 2a8d29cb1..b167f457e 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -1277,14 +1277,14 @@ void Session::connection_open_finish(ConnectionInfo *info, Slice mode_name; if (mode_ == Mode::Tcp) { mode = mtproto::SessionConnection::Mode::Tcp; - mode_name = Slice("Tcp"); + mode_name = Slice("TCP"); } else { if (info->connection_id_ == 0) { mode = mtproto::SessionConnection::Mode::Http; - mode_name = Slice("Http"); + mode_name = Slice("HTTP"); } else { mode = mtproto::SessionConnection::Mode::HttpLongPoll; - mode_name = Slice("HttpLongPoll"); + mode_name = Slice("LongPoll"); } } auto name = PSTRING() << get_name() << "::Connect::" << mode_name << "::" << raw_connection->extra().debug_str; diff --git a/td/telegram/net/Session.h b/td/telegram/net/Session.h index e16d9cd11..02d1d4dee 100644 --- a/td/telegram/net/Session.h +++ b/td/telegram/net/Session.h @@ -269,7 +269,7 @@ class Session final void raw_event(const Event::Raw &event) final; friend StringBuilder &operator<<(StringBuilder &sb, Mode mode) { - return sb << (mode == Mode::Http ? "Http" : "Tcp"); + return sb << (mode == Mode::Http ? "HTTP" : "TCP"); } }; diff --git a/tdutils/td/utils/OrderedEventsProcessor.h b/tdutils/td/utils/OrderedEventsProcessor.h index f472fc320..d5c638eb8 100644 --- a/tdutils/td/utils/OrderedEventsProcessor.h +++ b/tdutils/td/utils/OrderedEventsProcessor.h @@ -13,7 +13,7 @@ namespace td { -// Process states in order defined by their Id +// Process states in order defined by their SeqNo template class OrderedEventsProcessor { public: diff --git a/tdutils/td/utils/port/UdpSocketFd.h b/tdutils/td/utils/port/UdpSocketFd.h index 92489f6b1..67cdf801a 100644 --- a/tdutils/td/utils/port/UdpSocketFd.h +++ b/tdutils/td/utils/port/UdpSocketFd.h @@ -20,7 +20,6 @@ #include namespace td { -// Udp and errors namespace detail { class UdpSocketFdImpl; class UdpSocketFdImplDeleter {