aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark/wget.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2022-09-14 15:06:52 +0300
committerlevlam <levlam@telegram.org>2022-09-14 15:06:52 +0300
commit1ac2dfef30d53183ade197fdac26e05720214a39 (patch)
tree00a09c5fe485b08dd6fdba6470c9dd4fea3be32b /benchmark/wget.cpp
parent70e3586626f8fe3edb878eb94b36abb1dafdf0cb (diff)
Replace ConcurrentScheduler::init with constructor.
Diffstat (limited to 'benchmark/wget.cpp')
-rw-r--r--benchmark/wget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/wget.cpp b/benchmark/wget.cpp
index 1fdfc2af1..5145f317f 100644
--- a/benchmark/wget.cpp
+++ b/benchmark/wget.cpp
@@ -23,8 +23,7 @@ int main(int argc, char *argv[]) {
auto timeout = 10;
auto ttl = 3;
auto prefer_ipv6 = (argc > 2 && td::string(argv[2]) == "-6");
- auto scheduler = td::make_unique<td::ConcurrentScheduler>();
- scheduler->init(0);
+ auto scheduler = td::make_unique<td::ConcurrentScheduler>(0, 0);
scheduler
->create_actor_unsafe<td::Wget>(0, "Client",
td::PromiseCreator::lambda([](td::Result<td::unique_ptr<td::HttpQuery>> res) {