diff --git a/td/telegram/files/FileDownloadManager.h b/td/telegram/files/FileDownloadManager.h index d161a6cab..63fd8dc2d 100644 --- a/td/telegram/files/FileDownloadManager.h +++ b/td/telegram/files/FileDownloadManager.h @@ -57,7 +57,6 @@ class FileDownloadManager final : public Actor { struct Node { QueryId query_id_; ActorOwn loader_; - ResourceState resource_state_; }; using NodeId = uint64; diff --git a/td/telegram/files/FileFromBytes.h b/td/telegram/files/FileFromBytes.h index 4e5833b37..47c29a2dd 100644 --- a/td/telegram/files/FileFromBytes.h +++ b/td/telegram/files/FileFromBytes.h @@ -6,7 +6,7 @@ // #pragma once -#include "td/telegram/files/FileLoader.h" +#include "td/telegram/files/FileLoaderActor.h" #include "td/telegram/files/FileLocation.h" #include "td/telegram/files/FileType.h" @@ -14,10 +14,10 @@ #include "td/utils/buffer.h" #include "td/utils/common.h" -#include "td/utils/port/FileFd.h" #include "td/utils/Status.h" namespace td { + class FileFromBytes final : public FileLoaderActor { public: class Callback { @@ -41,15 +41,16 @@ class FileFromBytes final : public FileLoaderActor { unique_ptr callback_; - FileFd fd_; - string path_; - void wakeup() final; + void set_resource_manager(ActorShared) final { } + void update_priority(int8 priority) final { } + void update_resources(const ResourceState &other) final { } }; + } // namespace td diff --git a/td/telegram/files/FileHashUploader.h b/td/telegram/files/FileHashUploader.h index 4b2621ec8..11d947e31 100644 --- a/td/telegram/files/FileHashUploader.h +++ b/td/telegram/files/FileHashUploader.h @@ -44,6 +44,7 @@ class FileHashUploader final : public FileLoaderActor { void update_priority(int8 priority) final { send_closure(resource_manager_, &ResourceManager::update_priority, priority); } + void update_resources(const ResourceState &other) final { if (stop_flag_) { return; diff --git a/td/telegram/files/FileUploadManager.h b/td/telegram/files/FileUploadManager.h index 44b6d8711..339d69ce4 100644 --- a/td/telegram/files/FileUploadManager.h +++ b/td/telegram/files/FileUploadManager.h @@ -54,7 +54,6 @@ class FileUploadManager final : public Actor { struct Node { QueryId query_id_; ActorOwn loader_; - ResourceState resource_state_; }; using NodeId = uint64;