Skip to content

Commit 742764b

Browse files
pabzmtcitworld
authored andcommitted
chore: Use constant for default value
Co-authored-by: Thomas Citharel <nextcloud@tcit.fr> Signed-off-by: Pablo Zmdl <57864086+pabzm@users.noreply.github.com>
1 parent 280adb3 commit 742764b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/dav/lib/CardDAV/SyncService.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
use OCP\AppFramework\Db\TTransactional;
1212
use OCP\AppFramework\Http;
13+
use OCP\Http\Client\IClient;
1314
use OCP\Http\Client\IClientService;
1415
use OCP\IConfig;
1516
use OCP\IDBConnection;
@@ -155,7 +156,7 @@ protected function requestSyncReport(string $url, string $userName, string $addr
155156
'auth' => [$userName, $sharedSecret],
156157
'body' => $this->buildSyncCollectionRequestBody($syncToken),
157158
'headers' => ['Content-Type' => 'application/xml'],
158-
'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', 30)
159+
'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', IClient::DEFAULT_REQUEST_TIMEOUT)
159160
];
160161

161162
$response = $client->request(

0 commit comments

Comments
 (0)