Skip to content

Commit

Permalink
Add connection timeout to all requests
Browse files Browse the repository at this point in the history
  • Loading branch information
xyNNN authored Mar 31, 2023
1 parent e3212aa commit 16efb9a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Pirsch.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public static function track(

try {
Http::withToken(config('pirsch.token'))
->connectTimeout(0.5)
->retry(
times: 3,
sleepMilliseconds: 100,
Expand Down

0 comments on commit 16efb9a

Please sign in to comment.