+ return update_interval
+
+
+ def _update(self, args: NominatimArgs) -> None:
+ # pylint: disable=too-many-locals
+ from ..tools import replication
+ from ..indexer.indexer import Indexer
+ from ..tokenizer import factory as tokenizer_factory
+
+ update_interval = self._compute_update_interval(args)
+
+ params = args.osm2pgsql_options(default_cache=2000, default_threads=1)
+ params.update(base_url=args.config.REPLICATION_URL,
+ update_interval=update_interval,
+ import_file=args.project_dir / 'osmosischange.osc',
+ max_diff_size=args.config.get_int('REPLICATION_MAX_DIFF'),
+ indexed_only=not args.once)
+