]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiTag.pm
lei: lock worker counts
[public-inbox.git] / lib / PublicInbox / LeiTag.pm
index 44d77b881c04136c1f190e3e166298e100fd101c..c4f5ecffb575168044b216139874e2d8a14c5e2d 100644 (file)
@@ -50,8 +50,7 @@ sub lei_tag { # the "lei tag" method
                return $lei->fail('no keywords or labels specified');
        my $ops = {};
        $lei->{auth}->op_merge($ops, $self) if $lei->{auth};
-       my $j = $self->{-wq_nr_workers} = 1; # locked for now
-       (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};