Minor improvements.

This commit is contained in:
levlam 2021-11-04 12:46:08 +03:00
parent eb2c0c9315
commit ca7947cf44
15 changed files with 12 additions and 6 deletions

View File

@ -43,7 +43,6 @@ class td::ActorTraits<TestActor> {
}; };
class CreateActorBench final : public td::Benchmark { class CreateActorBench final : public td::Benchmark {
private:
td::ConcurrentScheduler scheduler_; td::ConcurrentScheduler scheduler_;
void start_up() final { void start_up() final {

View File

@ -12,6 +12,7 @@
#include "td/actor/ConcurrentScheduler.h" #include "td/actor/ConcurrentScheduler.h"
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/BufferedFd.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/port/IPAddress.h" #include "td/utils/port/IPAddress.h"
#include "td/utils/port/SocketFd.h" #include "td/utils/port/SocketFd.h"

View File

@ -13,6 +13,7 @@
#include "td/actor/ConcurrentScheduler.h" #include "td/actor/ConcurrentScheduler.h"
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/BufferedFd.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/port/SocketFd.h" #include "td/utils/port/SocketFd.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"

View File

@ -17,8 +17,6 @@
// TODO: all return values must be checked // TODO: all return values must be checked
#include <atomic> #include <atomic>
#include <cstdlib>
#include <vector>
#if TD_PORT_POSIX #if TD_PORT_POSIX
#include <pthread.h> #include <pthread.h>

View File

@ -17,6 +17,7 @@
#include "td/telegram/misc.h" #include "td/telegram/misc.h"
#include "td/telegram/net/DcId.h" #include "td/telegram/net/DcId.h"
#include "td/telegram/Photo.h" #include "td/telegram/Photo.h"
#include "td/telegram/PhotoSizeSource.h"
#include "td/telegram/secret_api.h" #include "td/telegram/secret_api.h"
#include "td/telegram/StickersManager.h" #include "td/telegram/StickersManager.h"
#include "td/telegram/Td.h" #include "td/telegram/Td.h"

View File

@ -21,6 +21,7 @@
#include "td/utils/algorithm.h" #include "td/utils/algorithm.h"
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/SliceBuilder.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"
#include <limits> #include <limits>

View File

@ -26,6 +26,7 @@
#include "td/telegram/net/DcId.h" #include "td/telegram/net/DcId.h"
#include "td/telegram/net/MtprotoHeader.h" #include "td/telegram/net/MtprotoHeader.h"
#include "td/telegram/net/NetQueryDispatcher.h" #include "td/telegram/net/NetQueryDispatcher.h"
#include "td/telegram/PhotoSizeSource.h"
#include "td/telegram/secret_api.h" #include "td/telegram/secret_api.h"
#include "td/telegram/StickerSetId.hpp" #include "td/telegram/StickerSetId.hpp"
#include "td/telegram/StickersManager.hpp" #include "td/telegram/StickersManager.hpp"
@ -43,6 +44,7 @@
#include "td/actor/SleepActor.h" #include "td/actor/SleepActor.h"
#include "td/utils/algorithm.h" #include "td/utils/algorithm.h"
#include "td/utils/base64.h"
#include "td/utils/emoji.h" #include "td/utils/emoji.h"
#include "td/utils/format.h" #include "td/utils/format.h"
#include "td/utils/JsonBuilder.h" #include "td/utils/JsonBuilder.h"

View File

@ -12,7 +12,6 @@
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/Heap.h" #include "td/utils/Heap.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/MpscPollableQueue.h"
#include "td/utils/ObjectPool.h" #include "td/utils/ObjectPool.h"
#include "td/utils/port/detail/PollableFd.h" #include "td/utils/port/detail/PollableFd.h"
#include "td/utils/port/PollFlags.h" #include "td/utils/port/PollFlags.h"
@ -20,7 +19,6 @@
#include "td/utils/Time.h" #include "td/utils/Time.h"
#include <atomic> #include <atomic>
#include <memory>
#include <tuple> #include <tuple>
#include <utility> #include <utility>

View File

@ -11,6 +11,7 @@
#include "td/actor/actor.h" #include "td/actor/actor.h"
#include "td/utils/BufferedFd.h"
#include "td/utils/port/SocketFd.h" #include "td/utils/port/SocketFd.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"

View File

@ -12,6 +12,7 @@
#include "td/actor/actor.h" #include "td/actor/actor.h"
#include "td/utils/BufferedFd.h"
#include "td/utils/port/SocketFd.h" #include "td/utils/port/SocketFd.h"
#include "td/utils/Status.h" #include "td/utils/Status.h"

View File

@ -11,6 +11,7 @@
#include "td/net/SslStream.h" #include "td/net/SslStream.h"
#include "td/utils/buffer.h" #include "td/utils/buffer.h"
#include "td/utils/BufferedFd.h"
#include "td/utils/HttpUrl.h" #include "td/utils/HttpUrl.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/misc.h" #include "td/utils/misc.h"

View File

@ -262,6 +262,7 @@ set(TDUTILS_SOURCE
td/utils/tl_parsers.h td/utils/tl_parsers.h
td/utils/tl_storers.h td/utils/tl_storers.h
td/utils/TlDowncastHelper.h td/utils/TlDowncastHelper.h
td/utils/TlStorerToString.h
td/utils/translit.h td/utils/translit.h
td/utils/TsCerr.h td/utils/TsCerr.h
td/utils/TsFileLog.h td/utils/TsFileLog.h

View File

@ -7,6 +7,7 @@
#pragma once #pragma once
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/SharedSlice.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/SliceBuilder.h" #include "td/utils/SliceBuilder.h"
#include "td/utils/UInt.h" #include "td/utils/UInt.h"

View File

@ -8,7 +8,6 @@
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"
#include "td/utils/SharedSlice.h"
#include "td/utils/Slice.h" #include "td/utils/Slice.h"
#include "td/utils/StorerBase.h" #include "td/utils/StorerBase.h"

View File

@ -32,6 +32,7 @@
#include "td/actor/PromiseFuture.h" #include "td/actor/PromiseFuture.h"
#include "td/utils/base64.h" #include "td/utils/base64.h"
#include "td/utils/BufferedFd.h"
#include "td/utils/common.h" #include "td/utils/common.h"
#include "td/utils/crypto.h" #include "td/utils/crypto.h"
#include "td/utils/logging.h" #include "td/utils/logging.h"