Skip to content

Commit

Permalink
timeout increased (stock list is slow)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkerpeter committed Mar 21, 2016
1 parent 49d7d36 commit 4196315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
->setBillingAddress($address)
->setShippingAddress($address);

//$order->setPickupPoint('NL-111101', '1111AA', 'Straatnaam 10a');

if (!$order->save()) {
echo $order->getMessage();
Expand All @@ -61,6 +62,3 @@
foreach (Stock::model()->findAll() as $stock) {
echo $stock->sku . ': ' . $stock->stock . "\n";
}

$shipment = Shipment::model()->findByPk('#123');
print_r($shipment);
2 changes: 1 addition & 1 deletion src/app/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private function getGuzzleClient() {
),
'allow_redirects' => false,
'connect_timeout' => 10,
'timeout' => 10
'timeout' => 30
));
}
return $this->client;
Expand Down

0 comments on commit 4196315

Please sign in to comment.