File 0004-change-commit_interval-from-10-to-90-seconds.patch of Package muchsync

From 2c4adfb40796124d0d81a7fc72528df1a6d766d0 Mon Sep 17 00:00:00 2001
From: David Mazieres <dm@uun.org>
Date: Mon, 10 Dec 2018 18:37:04 -0800
Subject: [PATCH 4/5] change commit_interval from 10 to 90 seconds to speed up
 big syncs

---
 protocol.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/protocol.cc b/protocol.cc
index 40371fc..c736929 100644
--- a/protocol.cc
+++ b/protocol.cc
@@ -880,7 +880,7 @@ void
 muchsync_client (sqlite3 *db, notmuch_db &nm,
 		 istream &in, ostream &out)
 {
-  constexpr time_t commit_interval = 10;
+  constexpr time_t commit_interval = 90;
   /* Any work done here gets overlapped with server */
   sync_local_data (db, nm.maildir);
   versvector localvv {get_sync_vector (db)}, remotevv;
-- 
2.20.1
openSUSE Build Service is sponsored by