From 7b7939d47b336fb7d8c4387858e620dbc218bb1e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 18 Sep 2021 09:33:24 +0000 Subject: lei: lock worker counts It doesn't seem worthwhile to change worker counts dynamically on a per-command-basis with lei, and I don't know how such an interface would even work... --- lib/PublicInbox/LeiLsMailSource.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/PublicInbox/LeiLsMailSource.pm') diff --git a/lib/PublicInbox/LeiLsMailSource.pm b/lib/PublicInbox/LeiLsMailSource.pm index f012e10e..bcb1838e 100644 --- a/lib/PublicInbox/LeiLsMailSource.pm +++ b/lib/PublicInbox/LeiLsMailSource.pm @@ -96,8 +96,7 @@ sub lei_ls_mail_source { $lei->start_pager if -t $lei->{1}; my $ops = {}; $lei->{auth}->op_merge($ops, $self); - my $j = $self->{-wq_nr_workers} = 1; # locked - (my $op_c, $ops) = $lei->workers_start($self, $j, $ops); + (my $op_c, $ops) = $lei->workers_start($self, 1, $ops); $lei->{wq1} = $self; $lei->{-err_type} = 'non-fatal'; net_merge_all_done($self) unless $lei->{auth}; -- cgit v1.2.3-24-ge0c7