diff --git a/config/config.php b/config/config.php index b3756fc..a0accf4 100644 --- a/config/config.php +++ b/config/config.php @@ -24,4 +24,6 @@ 'retry' => 3, 'timeout' => 10, + + 'sleep' => 3000, ]; \ No newline at end of file diff --git a/src/Notion.php b/src/Notion.php index 26876ac..2e4ed9e 100644 --- a/src/Notion.php +++ b/src/Notion.php @@ -80,7 +80,10 @@ private function connect(): Notion ::withHeaders($this->buildRequestHeader()) ->withToken($this->token) ->timeout(config('laravel-notion-api.timeout')) - ->retry(config('laravel-notion-api.retry'), 100); + ->retry( + config('laravel-notion-api.retry'), + config('laravel-notion-api.sleep') + ); return $this; }