From: Pablo Zmdl <57864086+pabzm@users.noreply.github.com> Date: Mon, 14 Oct 2024 07:56:30 +0000 (+0200) Subject: chore: Use constant for default value X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F48418%2Fhead;p=nextcloud-server.git chore: Use constant for default value Co-authored-by: Thomas Citharel Signed-off-by: Pablo Zmdl <57864086+pabzm@users.noreply.github.com> --- diff --git a/apps/dav/lib/CardDAV/SyncService.php b/apps/dav/lib/CardDAV/SyncService.php index 026a02a72ab..a10c830ec79 100644 --- a/apps/dav/lib/CardDAV/SyncService.php +++ b/apps/dav/lib/CardDAV/SyncService.php @@ -10,6 +10,7 @@ namespace OCA\DAV\CardDAV; 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; @@ -155,7 +156,7 @@ class SyncService { '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(