Minor improvements.

GitOrigin-RevId: 835275f0146586e4de5e18e9f01be29bb72ddf31
This commit is contained in:
levlam 2020-06-10 03:42:00 +03:00
parent bed0bb69f0
commit 44689f81ff
3 changed files with 7 additions and 5 deletions

View File

@ -83,7 +83,7 @@ void dump_pending_network_queries() {
}
const NetQueryDebug &debug = cur->get_data_unsafe();
const NetQuery &nq = *static_cast<const NetQuery *>(cur);
LOG(WARNING) << tag("user id", debug.my_id_) << nq << tag("total flood", format::as_time(nq.total_timeout_))
LOG(WARNING) << tag("user", debug.my_id_) << nq << tag("total flood", format::as_time(nq.total_timeout_))
<< tag("since start", format::as_time(Time::now_cached() - debug.start_timestamp_))
<< tag("state", debug.state_)
<< tag("in this state", format::as_time(Time::now_cached() - debug.state_timestamp_))

View File

@ -14,10 +14,11 @@
namespace td {
template <class DataT>
struct TsList;
class TsList;
template <class DataT>
struct TsListNode : protected ListNode {
class TsListNode : protected ListNode {
public:
TsListNode() {
clear();
}
@ -136,7 +137,7 @@ struct TsListNode : protected ListNode {
bool is_root{false};
DataT data_;
friend struct TsList<DataT>;
friend class TsList<DataT>;
void clear() {
ListNode::clear();
@ -154,7 +155,7 @@ struct TsListNode : protected ListNode {
};
template <class DataT>
struct TsList : public TsListNode<DataT> {
class TsList : public TsListNode<DataT> {
public:
TsList() {
this->parent = this;

View File

@ -13,6 +13,7 @@
#include "td/utils/TsList.h"
#include <atomic>
#include <mutex>
#include <set>
#include <utility>