Fix formatting.
GitOrigin-RevId: 144f91ea1ad0a1f9a8e5e08c4c10f238b066be47
This commit is contained in:
parent
9b42166c68
commit
dd398c5968
@ -152,7 +152,7 @@ tl_object_ptr<td_api::animation> AnimationsManager::get_animation_object(FileId
|
|||||||
|
|
||||||
auto &animation = animations_[file_id];
|
auto &animation = animations_[file_id];
|
||||||
LOG_CHECK(animation != nullptr) << source << " " << file_id << " "
|
LOG_CHECK(animation != nullptr) << source << " " << file_id << " "
|
||||||
<< static_cast<int32>(td_->file_manager_->get_file_view(file_id).get_type());
|
<< static_cast<int32>(td_->file_manager_->get_file_view(file_id).get_type());
|
||||||
// TODO can we make that function const?
|
// TODO can we make that function const?
|
||||||
animation->is_changed = false;
|
animation->is_changed = false;
|
||||||
return make_tl_object<td_api::animation>(animation->duration, animation->dimensions.width,
|
return make_tl_object<td_api::animation>(animation->duration, animation->dimensions.width,
|
||||||
|
@ -5258,10 +5258,11 @@ void ContactsManager::on_save_user_to_database(UserId user_id, bool success) {
|
|||||||
User *u = get_user(user_id);
|
User *u = get_user(user_id);
|
||||||
CHECK(u != nullptr);
|
CHECK(u != nullptr);
|
||||||
LOG_CHECK(u->is_being_saved) << user_id << " " << u->is_saved << " " << u->is_status_saved << " "
|
LOG_CHECK(u->is_being_saved) << user_id << " " << u->is_saved << " " << u->is_status_saved << " "
|
||||||
<< load_user_from_database_queries_.count(user_id) << " " << u->is_received << " "
|
<< load_user_from_database_queries_.count(user_id) << " " << u->is_received << " "
|
||||||
<< u->is_deleted << " " << u->is_bot << " " << u->is_changed << " " << u->need_send_update
|
<< u->is_deleted << " " << u->is_bot << " " << u->is_changed << " "
|
||||||
<< " " << u->is_status_changed << " " << u->is_name_changed << " " << u->is_username_changed
|
<< u->need_send_update << " " << u->is_status_changed << " " << u->is_name_changed << " "
|
||||||
<< " " << u->is_photo_changed << " " << u->is_outbound_link_changed;
|
<< u->is_username_changed << " " << u->is_photo_changed << " "
|
||||||
|
<< u->is_outbound_link_changed;
|
||||||
CHECK(load_user_from_database_queries_.count(user_id) == 0);
|
CHECK(load_user_from_database_queries_.count(user_id) == 0);
|
||||||
u->is_being_saved = false;
|
u->is_being_saved = false;
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ NetQueryCreator::Ptr NetQueryCreator::create(uint64 id, const Storer &storer, Dc
|
|||||||
BufferSlice slice(storer.size());
|
BufferSlice slice(storer.size());
|
||||||
auto real_size = storer.store(slice.as_slice().ubegin());
|
auto real_size = storer.store(slice.as_slice().ubegin());
|
||||||
LOG_CHECK(real_size == slice.size()) << real_size << " " << slice.size() << " "
|
LOG_CHECK(real_size == slice.size()) << real_size << " " << slice.size() << " "
|
||||||
<< format::as_hex_dump<4>(Slice(slice.as_slice()));
|
<< format::as_hex_dump<4>(Slice(slice.as_slice()));
|
||||||
|
|
||||||
// TODO: magic constant
|
// TODO: magic constant
|
||||||
if (slice.size() < (1 << 8)) {
|
if (slice.size() < (1 << 8)) {
|
||||||
|
@ -105,7 +105,8 @@ ActorOwn<ActorT> Scheduler::register_actor_impl(Slice name, ActorT *actor_ptr, A
|
|||||||
#if TD_THREAD_UNSUPPORTED || TD_EVENTFD_UNSUPPORTED
|
#if TD_THREAD_UNSUPPORTED || TD_EVENTFD_UNSUPPORTED
|
||||||
sched_id = 0;
|
sched_id = 0;
|
||||||
#endif
|
#endif
|
||||||
LOG_CHECK(sched_id == sched_id_ || (0 <= sched_id && sched_id < static_cast<int32>(outbound_queues_.size()))) << sched_id;
|
LOG_CHECK(sched_id == sched_id_ || (0 <= sched_id && sched_id < static_cast<int32>(outbound_queues_.size())))
|
||||||
|
<< sched_id;
|
||||||
auto info = actor_info_pool_->create_empty();
|
auto info = actor_info_pool_->create_empty();
|
||||||
VLOG(actor) << "Create actor: " << tag("name", name) << tag("ptr", *info) << tag("context", context())
|
VLOG(actor) << "Create actor: " << tag("name", name) << tag("ptr", *info) << tag("context", context())
|
||||||
<< tag("this", this) << tag("actor_count", actor_count_);
|
<< tag("this", this) << tag("actor_count", actor_count_);
|
||||||
|
@ -24,7 +24,7 @@ class BinlogEventsProcessor {
|
|||||||
void for_each(CallbackT &&callback) {
|
void for_each(CallbackT &&callback) {
|
||||||
for (size_t i = 0; i < ids_.size(); i++) {
|
for (size_t i = 0; i < ids_.size(); i++) {
|
||||||
LOG_CHECK(i == 0 || ids_[i - 1] < ids_[i]) << ids_[i - 1] << " " << events_[i - 1].public_to_string() << " "
|
LOG_CHECK(i == 0 || ids_[i - 1] < ids_[i]) << ids_[i - 1] << " " << events_[i - 1].public_to_string() << " "
|
||||||
<< ids_[i] << " " << events_[i].public_to_string();
|
<< ids_[i] << " " << events_[i].public_to_string();
|
||||||
if ((ids_[i] & 1) == 0) {
|
if ((ids_[i] & 1) == 0) {
|
||||||
callback(events_[i]);
|
callback(events_[i]);
|
||||||
}
|
}
|
||||||
|
@ -172,7 +172,7 @@ class Variant {
|
|||||||
void init_empty(T &&t) {
|
void init_empty(T &&t) {
|
||||||
LOG_CHECK(offset_ == npos) << offset_
|
LOG_CHECK(offset_ == npos) << offset_
|
||||||
#if TD_CLANG || TD_GCC
|
#if TD_CLANG || TD_GCC
|
||||||
<< ' ' << __PRETTY_FUNCTION__
|
<< ' ' << __PRETTY_FUNCTION__
|
||||||
#endif
|
#endif
|
||||||
;
|
;
|
||||||
offset_ = offset<T>();
|
offset_ = offset<T>();
|
||||||
|
@ -22,7 +22,7 @@ void TlParser::set_error(const string &error_message) {
|
|||||||
data = empty_data;
|
data = empty_data;
|
||||||
CHECK(error_pos != std::numeric_limits<size_t>::max());
|
CHECK(error_pos != std::numeric_limits<size_t>::max());
|
||||||
LOG_CHECK(data_len == 0) << data_len << " " << left_len << " " << data << " " << &empty_data[0] << " " << error_pos
|
LOG_CHECK(data_len == 0) << data_len << " " << left_len << " " << data << " " << &empty_data[0] << " " << error_pos
|
||||||
<< " " << error;
|
<< " " << error;
|
||||||
CHECK(left_len == 0);
|
CHECK(left_len == 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user