From 6044ee83fbf46ca19c7d949a37b92ee67af61127 Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 22 Nov 2020 16:26:00 +0300 Subject: [PATCH] Fix Client_SimpleMulti test on macOS. --- td/telegram/Client.cpp | 2 +- test/tdclient.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/td/telegram/Client.cpp b/td/telegram/Client.cpp index 2eb3ffbbb..eddd5bd85 100644 --- a/td/telegram/Client.cpp +++ b/td/telegram/Client.cpp @@ -417,7 +417,7 @@ class MultiImplPool { if (impls_.empty()) { init_openssl_threads(); - impls_.resize(clamp(thread::hardware_concurrency(), 8u, 1000u) * 5 / 4); + impls_.resize(clamp(thread::hardware_concurrency(), 8u, 24u) * 5 / 4); net_query_stats_ = std::make_shared(); } diff --git a/test/tdclient.cpp b/test/tdclient.cpp index 1937150ce..ffbf85e0b 100644 --- a/test/tdclient.cpp +++ b/test/tdclient.cpp @@ -868,7 +868,7 @@ TEST(Client, Simple) { } TEST(Client, SimpleMulti) { - std::vector clients(50); + std::vector clients(40); //for (auto &client : clients) { //client.execute({1, td::td_api::make_object("td_requests", 1)}); //}