From 69a28cab862268d194bef9ba972420d05d06a3bf Mon Sep 17 00:00:00 2001 From: Pablo Zmdl <57864086+pabzm@users.noreply.github.com> Date: Mon, 14 Oct 2024 09:56:30 +0200 Subject: [PATCH] chore: Use constant for default value Co-authored-by: Thomas Citharel Signed-off-by: Pablo Zmdl <57864086+pabzm@users.noreply.github.com> --- apps/dav/lib/CardDAV/SyncService.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dav/lib/CardDAV/SyncService.php b/apps/dav/lib/CardDAV/SyncService.php index 461067ebd4570..5ee3bbcd490e7 100644 --- a/apps/dav/lib/CardDAV/SyncService.php +++ b/apps/dav/lib/CardDAV/SyncService.php @@ -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; @@ -126,7 +127,7 @@ protected function requestSyncReport(string $url, string $userName, string $addr 'base_uri' => $url, '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(