Skip to content

Commit

Permalink
Change some grammar and quoting.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Apr 18, 2017
1 parent 05cb651 commit b0e5246
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions lib/MetaCPAN/Client.pm
Expand Up @@ -609,14 +609,13 @@ we can't to begin with (like non-leaf fields that hold a structure)
Note: please use with caution.
This parameter will set the max. lifetime of the ElasticSearch scroller
on the server (default = '5m').
Normally you do not need to set this value (as tweaking this value can
affect resources on the server);
in case you do - you probably need to check the efficiency of your
code/queries (feel free to reach out to us for assistance).
my $module = $mcpan->all('releases', { scroller_time => "3m" });
This parameter will set the maximum lifetime of the Elasticsearch scroller on
the server (default = '5m'). Normally you do not need to set this value (as
tweaking this value can affect resources on the server). In case you do, you
probably need to check the efficiency of your code/queries. (Feel free to
reach out to us for assistance).
my $module = $mcpan->all('releases', { scroller_time => '3m' });
=head2 scroller_size
Expand Down
2 changes: 1 addition & 1 deletion lib/MetaCPAN/Client/Request.pm
Expand Up @@ -133,7 +133,7 @@ sub ssearch {
my $params = shift;

my $time = delete $params->{'scroller_time'} || '5m';
my $size = delete $params->{'scroller_size'} || '1000';
my $size = delete $params->{'scroller_size'} || 1000;

my $scroller = MetaCPAN::Client::Scroll->new(
ua => $self->ua,
Expand Down

0 comments on commit b0e5246

Please sign in to comment.