Skip to content

Commit aad2d5d

Browse files
committed
Refactor
1 parent e24bbee commit aad2d5d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Please check the [Laravel support policy](https://laravel.com/docs/master/releas
4545
'handler' => env('STACKKIT_CLOUD_TASKS_HANDLER', ''),
4646
'queue' => env('STACKKIT_CLOUD_TASKS_QUEUE', 'default'),
4747
'service_account_email' => env('STACKKIT_CLOUD_TASKS_SERVICE_EMAIL', ''),
48-
'signed_audience' => env('STACKKIT_CLOUD_TASKS_SIGNED_AUDIENCE', false),
48+
'signed_audience' => env('STACKKIT_CLOUD_TASKS_SIGNED_AUDIENCE', true),
4949
// Optional: The deadline in seconds for requests sent to the worker. If the worker
5050
// does not respond by this deadline then the request is cancelled and the attempt
5151
// is marked as a DEADLINE_EXCEEDED failure.

src/CloudTasksQueue.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ protected function pushToCloudTasks($queue, $payload, $delay = 0)
167167

168168
$token = new OidcToken;
169169
$token->setServiceAccountEmail($this->config['service_account_email']);
170-
if ($audience = $this->getAudience()) $token->setAudience($audience);
170+
if ($audience = $this->getAudience()) {
171+
$token->setAudience($audience);
172+
}
171173
$httpRequest->setOidcToken($token);
172174

173175
if ($availableAt > time()) {

0 commit comments

Comments
 (0)