Skip to content

Commit 05f2ee5

Browse files
committed
chore: Allow customizing timeout value
1 parent 45e955e commit 05f2ee5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config/GrokConfig.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ public function __construct(
2323
if (! $this->apiKey) {
2424
throw GrokException::missingApiKey();
2525
}
26-
$this->timeout = (int) DefaultConfig::TIMEOUT->value;
26+
$this->timeout = $timeout ?? (int) DefaultConfig::TIMEOUT->value;
2727
}
2828
}

0 commit comments

Comments
 (0)