Skip to content

Commit 9d20433

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 aaa279f commit 9d20433

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;
@@ -161,7 +162,7 @@ protected function requestSyncReport(string $url, string $userName, string $addr
161162
'auth' => [$userName, $sharedSecret],
162163
'body' => $this->buildSyncCollectionRequestBody($syncToken),
163164
'headers' => ['Content-Type' => 'application/xml'],
164-
'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', 30)
165+
'timeout' => $this->config->getSystemValueInt('carddav_sync_request_timeout', IClient::DEFAULT_REQUEST_TIMEOUT)
165166
];
166167

167168
$response = $client->request(

0 commit comments

Comments
 (0)