Minor fixes.

GitOrigin-RevId: b7985efd4257bc9bb2b2672f94c5f5671e19dd0f
This commit is contained in:
levlam 2020-07-26 14:24:30 +03:00
parent 7187b9c32f
commit b45f8ba3a0
8 changed files with 9 additions and 4 deletions

View File

@ -36,7 +36,7 @@ class StateManager final : public Actor {
}
};
StateManager(ActorShared<> parent) : parent_(std::move(parent)) {
explicit StateManager(ActorShared<> parent) : parent_(std::move(parent)) {
}
void on_synchronized(bool is_synchronized);

View File

@ -125,6 +125,7 @@
#include "td/utils/Status.h"
#include "td/utils/Timer.h"
#include "td/utils/tl_parsers.h"
#include "td/utils/TsList.h"
#include "td/utils/utf8.h"
#include <cmath>

View File

@ -9,6 +9,8 @@
#include "td/telegram/ConfigManager.h"
#include "td/telegram/Global.h"
#include "td/actor/actor.h"
#include "td/utils/format.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"

View File

@ -43,7 +43,7 @@ class TempAuthKeyWatchdog : public NetQueryCallback {
};
public:
TempAuthKeyWatchdog(ActorShared<> parent) : parent_(std::move(parent)) {
explicit TempAuthKeyWatchdog(ActorShared<> parent) : parent_(std::move(parent)) {
}
using RegisteredAuthKey = unique_ptr<RegisteredAuthKeyImpl>;

View File

@ -8,7 +8,6 @@
#include "td/utils/Closure.h"
#include "td/utils/common.h"
#include "td/utils/format.h"
#include "td/utils/logging.h"
#include "td/utils/StringBuilder.h"

View File

@ -8,6 +8,8 @@
#include "td/utils/ByteFlow.h"
#include <limits>
namespace td {
class HttpChunkedByteFlow final : public ByteFlowBase {

View File

@ -72,7 +72,6 @@ class ByteFlowBaseCommon : public ByteFlowInterface {
if (read_size >= max(need_size_, options_.read_watermark.high)) {
can_read = true;
}
} else {
// always can read when input is closed
can_read = true;

View File

@ -10,6 +10,8 @@
#include "td/utils/Gzip.h"
#include "td/utils/GzipByteFlow.h"
#include "td/utils/logging.h"
#include "td/utils/port/thread_local.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
#include "td/utils/tests.h"
#include "td/utils/Time.h"