Fix some spelling.

GitOrigin-RevId: 99848b019fce855bf50380ce6ffc2865a007161d
This commit is contained in:
levlam 2018-10-07 23:40:58 +03:00
parent e7b69c9419
commit 0c64b2cf9c
6 changed files with 12 additions and 12 deletions

View File

@ -495,7 +495,7 @@ void CallActor::on_received_query_result(NetQueryPtr net_query) {
//phone.requestCall#5b95b3d4 user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall; //phone.requestCall#5b95b3d4 user_id:InputUser random_id:int g_a_hash:bytes protocol:PhoneCallProtocol = phone.PhoneCall;
void CallActor::try_send_request_query() { void CallActor::try_send_request_query() {
LOG(INFO) << "Try send request query"; LOG(INFO) << "Trying to send request query";
if (!load_dh_config()) { if (!load_dh_config()) {
return; return;
} }
@ -527,7 +527,7 @@ void CallActor::on_request_query_result(NetQueryPtr net_query) {
//phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall; //phone.acceptCall#3bd2b4a0 peer:InputPhoneCall g_b:bytes protocol:PhoneCallProtocol = phone.PhoneCall;
void CallActor::try_send_accept_query() { void CallActor::try_send_accept_query() {
LOG(INFO) << "Try send accept query"; LOG(INFO) << "Trying to send accept query";
if (!load_dh_config()) { if (!load_dh_config()) {
return; return;
} }
@ -555,7 +555,7 @@ void CallActor::on_accept_query_result(NetQueryPtr net_query) {
//phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall; //phone.confirmCall#2efe1722 peer:InputPhoneCall g_a:bytes key_fingerprint:long protocol:PhoneCallProtocol = phone.PhoneCall;
void CallActor::try_send_confirm_query() { void CallActor::try_send_confirm_query() {
LOG(INFO) << "Try send confirm query"; LOG(INFO) << "Trying to send confirm query";
if (!load_dh_config()) { if (!load_dh_config()) {
return; return;
} }

View File

@ -5357,7 +5357,7 @@ ContactsManager::User *ContactsManager::get_user_force_impl(UserId user_id) {
return nullptr; return nullptr;
} }
LOG(INFO) << "Try load " << user_id << " from database"; LOG(INFO) << "Trying to load " << user_id << " from database";
on_load_user_from_database(user_id, G()->td_db()->get_sqlite_sync_pmc()->get(get_user_database_key(user_id))); on_load_user_from_database(user_id, G()->td_db()->get_sqlite_sync_pmc()->get(get_user_database_key(user_id)));
return get_user(user_id); return get_user(user_id);
} }
@ -5580,7 +5580,7 @@ ContactsManager::Chat *ContactsManager::get_chat_force(ChatId chat_id) {
return nullptr; return nullptr;
} }
LOG(INFO) << "Try load " << chat_id << " from database"; LOG(INFO) << "Trying to load " << chat_id << " from database";
on_load_chat_from_database(chat_id, G()->td_db()->get_sqlite_sync_pmc()->get(get_chat_database_key(chat_id))); on_load_chat_from_database(chat_id, G()->td_db()->get_sqlite_sync_pmc()->get(get_chat_database_key(chat_id)));
return get_chat(chat_id); return get_chat(chat_id);
} }
@ -5801,7 +5801,7 @@ ContactsManager::Channel *ContactsManager::get_channel_force(ChannelId channel_i
return nullptr; return nullptr;
} }
LOG(INFO) << "Try load " << channel_id << " from database"; LOG(INFO) << "Trying to load " << channel_id << " from database";
on_load_channel_from_database(channel_id, on_load_channel_from_database(channel_id,
G()->td_db()->get_sqlite_sync_pmc()->get(get_channel_database_key(channel_id))); G()->td_db()->get_sqlite_sync_pmc()->get(get_channel_database_key(channel_id)));
return get_channel(channel_id); return get_channel(channel_id);
@ -6028,7 +6028,7 @@ ContactsManager::SecretChat *ContactsManager::get_secret_chat_force(SecretChatId
return nullptr; return nullptr;
} }
LOG(INFO) << "Try load " << secret_chat_id << " from database"; LOG(INFO) << "Trying to load " << secret_chat_id << " from database";
on_load_secret_chat_from_database( on_load_secret_chat_from_database(
secret_chat_id, G()->td_db()->get_sqlite_sync_pmc()->get(get_secret_chat_database_key(secret_chat_id))); secret_chat_id, G()->td_db()->get_sqlite_sync_pmc()->get(get_secret_chat_database_key(secret_chat_id)));
return get_secret_chat(secret_chat_id); return get_secret_chat(secret_chat_id);

View File

@ -2766,7 +2766,7 @@ WebPagesManager::WebPage *WebPagesManager::get_web_page_force(WebPageId web_page
return nullptr; return nullptr;
} }
LOG(INFO) << "Try load " << web_page_id << " from database"; LOG(INFO) << "Trying to load " << web_page_id << " from database";
on_load_web_page_from_database(web_page_id, on_load_web_page_from_database(web_page_id,
G()->td_db()->get_sqlite_sync_pmc()->get(get_web_page_database_key(web_page_id))); G()->td_db()->get_sqlite_sync_pmc()->get(get_web_page_database_key(web_page_id)));
return get_web_page(web_page_id); return get_web_page(web_page_id);

View File

@ -18,7 +18,7 @@
namespace td { namespace td {
void NetQueryDelayer::delay(NetQueryPtr query) { void NetQueryDelayer::delay(NetQueryPtr query) {
query->debug("try delay"); query->debug("trying to delay");
query->is_ready(); query->is_ready();
CHECK(query->is_error()); CHECK(query->is_error());
auto code = query->error().code(); auto code = query->error().code();

View File

@ -796,7 +796,7 @@ void Session::add_query(NetQueryPtr &&net_query) {
} }
void Session::connection_send_query(ConnectionInfo *info, NetQueryPtr &&net_query, uint64 message_id) { void Session::connection_send_query(ConnectionInfo *info, NetQueryPtr &&net_query, uint64 message_id) {
net_query->debug("Session: try send to mtproto::connection"); net_query->debug("Session: trying to send to mtproto::connection");
CHECK(info->state == ConnectionInfo::State::Ready); CHECK(info->state == ConnectionInfo::State::Ready);
current_info_ = info; current_info_ = info;

View File

@ -974,7 +974,7 @@ class Master : public Actor {
LOG(INFO) << "on_send_message_error: " << tag("random_id", random_id) << error; LOG(INFO) << "on_send_message_error: " << tag("random_id", random_id) << error;
auto it = sent_messages_.find(random_id); auto it = sent_messages_.find(random_id);
if (it == sent_messages_.end()) { if (it == sent_messages_.end()) {
LOG(INFO) << "TODO: try fix errors about message after it is sent"; LOG(INFO) << "TODO: try to fix errors about message after it is sent";
return; return;
} }
CHECK(it != sent_messages_.end()); CHECK(it != sent_messages_.end());
@ -987,7 +987,7 @@ class Master : public Actor {
LOG(INFO) << "on_send_message_ok: " << tag("random_id", random_id); LOG(INFO) << "on_send_message_ok: " << tag("random_id", random_id);
auto it = sent_messages_.find(random_id); auto it = sent_messages_.find(random_id);
if (it == sent_messages_.end()) { if (it == sent_messages_.end()) {
LOG(INFO) << "TODO: try fix errors about message after it is sent"; LOG(INFO) << "TODO: try to fix errors about message after it is sent";
return; return;
} }
CHECK(it != sent_messages_.end()); CHECK(it != sent_messages_.end());