Minor.
GitOrigin-RevId: dce97d9fae9b22ea19385cd73ab914a19d9b03f6
This commit is contained in:
parent
dd398c5968
commit
ce7c9feef1
@ -743,7 +743,7 @@ void SessionConnection::send_crypto(const Storer &storer, uint64 quick_ack_token
|
|||||||
|
|
||||||
Result<uint64> SessionConnection::send_query(BufferSlice buffer, bool gzip_flag, int64 message_id,
|
Result<uint64> SessionConnection::send_query(BufferSlice buffer, bool gzip_flag, int64 message_id,
|
||||||
uint64 invoke_after_id, bool use_quick_ack) {
|
uint64 invoke_after_id, bool use_quick_ack) {
|
||||||
LOG_CHECK(mode_ != Mode::HttpLongPoll) << "LongPoll connection is only for http_wait";
|
CHECK(mode_ != Mode::HttpLongPoll); // "LongPoll connection is only for http_wait"
|
||||||
if (message_id == 0) {
|
if (message_id == 0) {
|
||||||
message_id = auth_data_->next_message_id(Time::now_cached());
|
message_id = auth_data_->next_message_id(Time::now_cached());
|
||||||
}
|
}
|
||||||
|
@ -204,7 +204,7 @@ static void downcast_call(TlBufferParser &p, F &&f) {
|
|||||||
case messages_sendEncryptedService::ID:
|
case messages_sendEncryptedService::ID:
|
||||||
return f(*make_tl_object<messages_sendEncryptedService>(p));
|
return f(*make_tl_object<messages_sendEncryptedService>(p));
|
||||||
default:
|
default:
|
||||||
LOG_CHECK(0) << id;
|
LOG(ERROR) << "Unknown constructor " << id;
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -236,7 +236,8 @@ class DoAuthentication : public Task {
|
|||||||
on_authorization_ready();
|
on_authorization_ready();
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
LOG_CHECK(false) << "Unexpected authorization state " << to_string(authorization_state);
|
LOG(ERROR) << "Unexpected authorization state " << to_string(authorization_state);
|
||||||
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
send_query(std::move(function), [](auto res) { LOG_CHECK(res->get_id() == td_api::ok::ID) << to_string(res); });
|
send_query(std::move(function), [](auto res) { LOG_CHECK(res->get_id() == td_api::ok::ID) << to_string(res); });
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user