X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/d856788bf5cf7b4b3e2b4de10f37cf3002ae6826..8215748ac04689102fcfb5a014ad30c2a4d8ede0:/src/nominatim_db/tools/replication.py diff --git a/src/nominatim_db/tools/replication.py b/src/nominatim_db/tools/replication.py index 91171deb..eb031f39 100644 --- a/src/nominatim_db/tools/replication.py +++ b/src/nominatim_db/tools/replication.py @@ -125,8 +125,7 @@ def update(dsn: str, options: MutableMapping[str, Any], # Read updates into file. with _make_replication_server(options['base_url'], socket_timeout) as repl: outhandler = WriteHandler(str(options['import_file'])) - # tyoing: work around typing bug in pyosmium 4.0 - endseq = repl.apply_diffs(outhandler, startseq + 1, # type: ignore[arg-type] + endseq = repl.apply_diffs(outhandler, startseq + 1, max_size=options['max_diff_size'] * 1024) outhandler.close()