From 703b72511488068bdbc5e81172e674d0f07349ed Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 20 Jun 2016 01:24:17 +0200 Subject: Commit all databases in the same interval --- examples/imapresource/imapresource.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'examples/imapresource') diff --git a/examples/imapresource/imapresource.cpp b/examples/imapresource/imapresource.cpp index f9168e4..b5d224c 100644 --- a/examples/imapresource/imapresource.cpp +++ b/examples/imapresource/imapresource.cpp @@ -251,7 +251,6 @@ public: createOrModify(bufferType, remoteId, mail); } - commitSync(); const auto elapsed = time->elapsed(); Log() << "Synchronized " << count << " mails in " << path << Sink::Log::TraceTime(elapsed) << " " << elapsed/qMax(count, 1) << " [ms/mail]"; } @@ -310,7 +309,6 @@ public: auto folderFuture = imap.fetchFolders([this, &imap, &folderList](const QVector &folders) { synchronizeFolders(folders); commit(); - commitSync(); folderList << folders; }).exec(); @@ -332,7 +330,6 @@ public: } synchronizeMails(folder.normalizedPath(), messages); commit(); - commitSync(); }).exec(); messagesFuture.waitForFinished(); if (messagesFuture.errorCode()) { @@ -342,7 +339,6 @@ public: //Remove what there is to remove synchronizeRemovals(folder.normalizedPath(), uids); commit(); - commitSync(); Trace() << "Folder synchronized: " << folder.normalizedPath(); } -- cgit v1.2.3