From 337df310bec14c1d87c3283eef3487709cd99c88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sipos=20Andr=C3=A1s?= Date: Tue, 1 Apr 2025 12:25:31 +0200 Subject: [PATCH] use grok.timeout config @see: https://github.com/grok-php/laravel/issues/2 --- src/Config/GrokConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Config/GrokConfig.php b/src/Config/GrokConfig.php index 1eec9bb..ca1198e 100644 --- a/src/Config/GrokConfig.php +++ b/src/Config/GrokConfig.php @@ -23,6 +23,6 @@ public function __construct( if (! $this->apiKey) { throw GrokException::missingApiKey(); } - $this->timeout = $timeout ?? (int) DefaultConfig::TIMEOUT->value; + $this->timeout = (int) config('grok.timeout', (int) DefaultConfig::TIMEOUT->value); } }