diff options
author | Pablo Zmdl <57864086+pabzm@users.noreply.github.com> | 2024-10-14 09:56:30 +0200 |
---|---|---|
committer | Daniel <mail@danielkesselberg.de> | 2024-10-17 22:27:10 +0200 |
commit | 742764bd4e11b3601f56e8032375f082bc1ac626 (patch) | |
tree | da7136073c9c1b29a6d93e7af2e97346d6bbd3a6 /apps/dav | |
parent | 280adb3e9430138dc5ff8c990f8b5a1448ef5d88 (diff) | |
download | nextcloud-server-742764bd4e11b3601f56e8032375f082bc1ac626.tar.gz nextcloud-server-742764bd4e11b3601f56e8032375f082bc1ac626.zip |
chore: Use constant for default valueconfig-carddav-sync-request-timeout
Co-authored-by: Thomas Citharel <nextcloud@tcit.fr>
Signed-off-by: Pablo Zmdl <57864086+pabzm@users.noreply.github.com>
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/CardDAV/SyncService.php | 3 |
1 files changed, 2 insertions, 1 deletions
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( |