Skip to content

Commit

Permalink
Add magic-folder polling interval config option
Browse files Browse the repository at this point in the history
defaults to 5.0 seconds
  • Loading branch information
david415 committed Oct 5, 2016
1 parent e8c246f commit 63e52c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/allmydata/client.py
Expand Up @@ -572,7 +572,9 @@ def init_magic_folder(self):

from allmydata.frontends import magic_folder
umask = self.get_config("magic_folder", "download.umask", 0077)
s = magic_folder.MagicFolder(self, upload_dircap, collective_dircap, local_dir, dbfile, umask)

polling_interval = float(self.get_config("magic_folder", "polling_interval", 5.0)
s = magic_folder.MagicFolder(self, upload_dircap, collective_dircap, local_dir, dbfile, umask, pending_delay=polling_interval)
self._magic_folder = s
s.setServiceParent(self)
s.startService()
Expand Down

0 comments on commit 63e52c2

Please sign in to comment.