diff --git a/td/telegram/net/DcAuthManager.cpp b/td/telegram/net/DcAuthManager.cpp index a4355c663..ad99e72ae 100644 --- a/td/telegram/net/DcAuthManager.cpp +++ b/td/telegram/net/DcAuthManager.cpp @@ -96,8 +96,9 @@ DcAuthManager::DcInfo *DcAuthManager::find_dc(int32 dc_id) { void DcAuthManager::update_auth_key_state() { auto dc_id = narrow_cast(get_link_token()); auto &dc = get_dc(dc_id); + auto old_auth_key_state = dc.auth_key_state; dc.auth_key_state = get_auth_key_state(dc.shared_auth_data->get_auth_key()); - VLOG(dc) << "Update " << dc_id << " auth key state from " << dc.auth_key_state << " to " << dc.auth_key_state; + VLOG(dc) << "Update DcId{" << dc_id << "} auth key state from " << old_auth_key_state << " to " << dc.auth_key_state; loop(); } diff --git a/tdutils/td/utils/ConcurrentHashTable.h b/tdutils/td/utils/ConcurrentHashTable.h index 51b2a71b7..5bc94c4db 100644 --- a/tdutils/td/utils/ConcurrentHashTable.h +++ b/tdutils/td/utils/ConcurrentHashTable.h @@ -308,7 +308,6 @@ class ConcurrentHashMap { continue; } auto node_key = node.key.load(std::memory_order_relaxed); - //LOG(ERROR) << node_key << " " << node_key; auto ok = migrate_to_hash_map_->with_value( node_key, true, [&](auto &node_value) { node_value.store(old_value, std::memory_order_relaxed); }); LOG_CHECK(ok) << "Migration overflow";