Skip to content

Commit a38f31a

Browse files
committed
script/favorite: queued jobs can be faster with pre-calculated count
1 parent 7c9bf99 commit a38f31a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/MetaCPAN/Script/Favorite.pm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,10 @@ sub index_favorites {
133133
if ( $self->queue ) {
134134
$self->_add_to_queue(
135135
index_favorite => [
136-
'--distribution', $dist,
137-
( $self->count ? ( '--count', $self->count ) : () )
136+
'--distribution',
137+
$dist,
138+
'--count',
139+
( $self->count ? $self->count : $dist_fav_count{$dist} )
138140
] => { priority => 0 }
139141
);
140142

0 commit comments

Comments
 (0)