Skip to content

Commit

Permalink
Crawler: BC BREAK!!! Change sleep to milisecond.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Nov 6, 2019
1 parent 0060409 commit d47aa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private function isExternalLink(string $url): bool
private function loadUrl(string $url): HttpResponse
{
if ($this->config->getSleepBetweenRequests()) {
sleep($this->config->getSleepBetweenRequests());
usleep($this->config->getSleepBetweenRequests() * 1000);
}

self::timer($url);
Expand Down

0 comments on commit d47aa2e

Please sign in to comment.