Skip to content

Commit

Permalink
chore: Use constant for default value
Browse files Browse the repository at this point in the history
Co-authored-by: Thomas Citharel <[email protected]>
Signed-off-by: Pablo Zmdl <[email protected]>
  • Loading branch information
2 people authored and kesselb committed Oct 17, 2024
1 parent 280adb3 commit 742764b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dav/lib/CardDAV/SyncService.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

use OCP\AppFramework\Db\TTransactional;
use OCP\AppFramework\Http;
use OCP\Http\Client\IClient;
use OCP\Http\Client\IClientService;
use OCP\IConfig;
use OCP\IDBConnection;
Expand Down Expand Up @@ -155,7 +156,7 @@ protected function requestSyncReport(string $url, string $userName, string $addr
'auth' => [$userName, $sharedSecret],
'body' => $this->buildSyncCollectionRequestBody($syncToken),
'headers' => ['Content-Type' => 'application/xml'],
'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', 30)
'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', IClient::DEFAULT_REQUEST_TIMEOUT)
];

$response = $client->request(
Expand Down

0 comments on commit 742764b

Please sign in to comment.