]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiQuery.pm
lei_to_mail: limit workers for text, reply and v2 outputs
[public-inbox.git] / lib / PublicInbox / LeiQuery.pm
index 3d0e5b144d3a9c939cc036e525283adc020c8a2c..352ee60131aaf6bc9baabfbd4ae735c4a0f06568 100644 (file)
@@ -37,7 +37,7 @@ sub _start_query { # used by "lei q" and "lei up"
                        $lms->lms_write_prepare->lms_pause; # just create
                }
        }
-       $l2m and $l2m->{-wq_nr_workers} = $mj //
+       $l2m and $l2m->{-wq_nr_workers} //= $mj //
                int($nproc * 0.75 + 0.5); # keep some CPU for git
 
        # descending docid order is cheapest, MUA controls sorting order