Minor improvements.
GitOrigin-RevId: 835275f0146586e4de5e18e9f01be29bb72ddf31
This commit is contained in:
parent
bed0bb69f0
commit
44689f81ff
@ -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_))
|
||||
|
@ -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;
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "td/utils/TsList.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <mutex>
|
||||
#include <set>
|
||||
#include <utility>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user