Skip to content

Commit 406ef2b

Browse files
committed
suggest - fix script
1 parent a011f78 commit 406ef2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/suggest.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
use MetaCPAN::ES;
1010

1111
# args
12-
my $all;
1312
my $days = 1;
13+
my ( $all );
1414
GetOptions(
1515
"all" => \$all,
16-
"days=i" => \$days
16+
"days=i" => \$days,
1717
);
1818

1919
if ($all) {
@@ -60,7 +60,7 @@ ()
6060
}
6161

6262
sub _update_slice ($range) {
63-
my $es = MetaCPAN::ES->new( type => "file" );
63+
my $es = MetaCPAN::ES->new( index => "file" );
6464

6565
my $files = $es->scroll(
6666
scroll => '5m',

0 commit comments

Comments
 (0)