Fix "Try to" usages.

GitOrigin-RevId: 4ff6d26737f67180a1e9a1289f7f7fb428828b08
This commit is contained in:
levlam 2020-06-18 05:02:18 +03:00
parent 10c3cc2a51
commit 0275ecdcbc
2 changed files with 5 additions and 5 deletions

View File

@ -9884,7 +9884,7 @@ void MessagesManager::read_history_inbox(DialogId dialog_id, MessageId max_messa
}
if (max_message_id != MessageId() && max_message_id.is_yet_unsent()) {
LOG(ERROR) << "Try to update last read inbox message in " << dialog_id << " with " << max_message_id << " from "
LOG(ERROR) << "Tried to update last read inbox message in " << dialog_id << " with " << max_message_id << " from "
<< source;
return;
}
@ -9963,7 +9963,7 @@ void MessagesManager::read_history_outbox(DialogId dialog_id, MessageId max_mess
}
if (max_message_id.is_yet_unsent()) {
LOG(ERROR) << "Try to update last read outbox message with " << max_message_id;
LOG(ERROR) << "Tried to update last read outbox message with " << max_message_id;
return;
}
@ -10335,7 +10335,7 @@ void MessagesManager::set_dialog_max_unavailable_message_id(DialogId dialog_id,
}
if (max_unavailable_message_id.is_valid() && max_unavailable_message_id.is_yet_unsent()) {
LOG(ERROR) << "Try to update " << dialog_id << " last read outbox message with " << max_unavailable_message_id
LOG(ERROR) << "Tried to update " << dialog_id << " last read outbox message with " << max_unavailable_message_id
<< " from " << source;
return;
}
@ -18299,7 +18299,7 @@ std::pair<int32, vector<FullMessageId>> MessagesManager::search_call_messages(Me
auto filter_type = only_missed ? SearchMessagesFilter::MissedCall : SearchMessagesFilter::Call;
if (use_db && G()->parameters().use_message_db) {
// Try to use database
// try to use database
MessageId first_db_message_id =
calls_db_state_.first_calls_database_message_id_by_index[search_calls_filter_index(filter_type)];
int32 message_count = calls_db_state_.message_count_by_index[search_calls_filter_index(filter_type)];

View File

@ -427,7 +427,7 @@ Status IPAddress::init_host_port(CSlice host, CSlice port, bool prefer_ipv6) {
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
LOG(DEBUG + 10) << "Try to init IP address of " << host << " with port " << port;
LOG(DEBUG + 10) << "Trying to init IP address of " << host << " with port " << port;
auto err = getaddrinfo(host.c_str(), port.c_str(), &hints, &info);
if (err != 0) {
#if TD_WINDOWS