From d47aa2e295bec76999163027ee926727a198a526 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Wed, 6 Nov 2019 20:12:32 +0100 Subject: [PATCH] Crawler: BC BREAK!!! Change sleep to milisecond. --- src/Crawler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Crawler.php b/src/Crawler.php index 3830663..6938618 100644 --- a/src/Crawler.php +++ b/src/Crawler.php @@ -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);