aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark/bench_http.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark/bench_http.cpp')
-rw-r--r--benchmark/bench_http.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/benchmark/bench_http.cpp b/benchmark/bench_http.cpp
index fe90d32a2..70fdb909c 100644
--- a/benchmark/bench_http.cpp
+++ b/benchmark/bench_http.cpp
@@ -66,8 +66,7 @@ class HttpClient final : public td::HttpOutboundConnection::Callback {
int main() {
SET_VERBOSITY_LEVEL(VERBOSITY_NAME(ERROR));
- auto scheduler = td::make_unique<td::ConcurrentScheduler>();
- scheduler->init(0);
+ auto scheduler = td::make_unique<td::ConcurrentScheduler>(0, 0);
scheduler->create_actor_unsafe<HttpClient>(0, "Client1").release();
scheduler->create_actor_unsafe<HttpClient>(0, "Client2").release();
scheduler->start();