Commit 9a0972b1 authored by Shashwat Jolly's avatar Shashwat Jolly
Browse files

Use etebase 'medium' fetch option while fetching collection list

parent b0f3c485
......@@ -105,6 +105,7 @@ bool EteSyncClientState::accountStatus()
EtebaseCollectionManagerPtr collectionManager(etebase_account_get_collection_manager(mAccount.get()));
EtebaseFetchOptionsPtr fetchOptions(etebase_fetch_options_new());
etebase_fetch_options_set_limit(fetchOptions.get(), 1);
etebase_fetch_options_set_prefetch(fetchOptions.get(), ETEBASE_PREFETCH_OPTION_MEDIUM);
EtebaseCollectionListResponsePtr collectionList(etebase_collection_manager_list(collectionManager.get(), fetchOptions.get()));
if (!collectionList) {
......
......@@ -57,6 +57,7 @@ void JournalsFetchJob::fetchJournals()
EtebaseFetchOptionsPtr fetchOptions(etebase_fetch_options_new());
etebase_fetch_options_set_stoken(fetchOptions.get(), mSyncToken);
etebase_fetch_options_set_limit(fetchOptions.get(), COLLECTIONS_FETCH_BATCH_SIZE);
etebase_fetch_options_set_prefetch(fetchOptions.get(), ETEBASE_PREFETCH_OPTION_MEDIUM);
EtebaseCollectionListResponsePtr collectionList(etebase_collection_manager_list(collectionManager.get(), fetchOptions.get()));
if (!collectionList) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment