aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/client/scheduler.cpp
diff options
context:
space:
mode:
authorqrort <qrort@yandex-team.com>2022-12-02 11:31:25 +0300
committerqrort <qrort@yandex-team.com>2022-12-02 11:31:25 +0300
commitb1f4ffc9c8abff3ba58dc1ec9a9f92d2f0de6806 (patch)
tree2a23209faf0fea5586a6d4b9cee60d1b318d29fe /library/cpp/http/client/scheduler.cpp
parent559174a9144de40d6bb3997ea4073c82289b4974 (diff)
downloadydb-b1f4ffc9c8abff3ba58dc1ec9a9f92d2f0de6806.tar.gz
remove kikimr/driver DEPENDS
Diffstat (limited to 'library/cpp/http/client/scheduler.cpp')
-rw-r--r--library/cpp/http/client/scheduler.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/library/cpp/http/client/scheduler.cpp b/library/cpp/http/client/scheduler.cpp
deleted file mode 100644
index 87670bfb458..00000000000
--- a/library/cpp/http/client/scheduler.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-#include "scheduler.h"
-
-namespace NHttp {
- namespace {
- class TDefaultHostsPolicy: public IHostsPolicy {
- public:
- size_t GetMaxHostConnections(const TStringBuf&) const override {
- return 20;
- }
- };
-
- }
-
- TScheduler::TScheduler()
- : HostsPolicy_(new TDefaultHostsPolicy)
- {
- }
-
- TFetchRequestRef TScheduler::Extract() {
- {
- auto g(Guard(Lock_));
-
- if (!RequestQueue_.empty()) {
- TFetchRequestRef result(RequestQueue_.front());
- RequestQueue_.pop();
- return result;
- }
- }
- return TFetchRequestRef();
- }
-
- void TScheduler::Schedule(TFetchRequestRef req) {
- auto g(Guard(Lock_));
- RequestQueue_.push(req);
- }
-
-}