From a7739727b641813d7366c599b54d970c4ce99f3a Mon Sep 17 00:00:00 2001 From: Sergiotarxz Date: Fri, 24 May 2024 08:51:06 +0200 Subject: [PATCH] Adding cores => 10. --- lib/TgMagicPdf/Telegram.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/TgMagicPdf/Telegram.pm b/lib/TgMagicPdf/Telegram.pm index 436214f..206de32 100644 --- a/lib/TgMagicPdf/Telegram.pm +++ b/lib/TgMagicPdf/Telegram.pm @@ -25,7 +25,8 @@ has _ua => ( is => 'lazy', ); has _last_offset_update => ( is => 'rw', ); has _used_cores => ( is => 'rw', default => sub { 0 } ); -has _cores => ( is => 'rw', default => sub { `nproc` * 7 / 4 } ); +# We try 10 request at once in the crappy hardware. +has _cores => ( is => 'rw', default => sub { 10 } ); has _updates => ( is => 'rw' ); has _ioloop => ( is => 'rw' );