Skip to content

Commit

Permalink
Merge pull request #6 from carakas/patch-1
Browse files Browse the repository at this point in the history
Limit timeout to 5 seconds
  • Loading branch information
jeroendesloovere committed Jul 15, 2018
2 parents d07887a + e6e96c8 commit 97e5b40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gateway/MailChimpSubscriberGateway.php
Expand Up @@ -2,6 +2,7 @@

namespace MailMotor\Bundle\MailChimpBundle\Gateway;

use GuzzleHttp\RequestOptions;
use Illuminate\Support\Collection;
use Mailchimp\Mailchimp;
use MailMotor\Bundle\MailMotorBundle\Gateway\SubscriberGateway;
Expand Down Expand Up @@ -70,7 +71,7 @@ public function getInterests(string $listId): array
/** @var Collection $result */
$interestCategories = $this->api->request(
'lists/' . $listId . '/interest-categories',
array(),
array(RequestOptions::TIMEOUT => 5),
'get'
);

Expand Down

0 comments on commit 97e5b40

Please sign in to comment.