mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-11 13:24:07 +00:00
fix timeout use for replication timeout
The timeout parameter is no longer taken into account since pyosmium switched to the requests library. This adds the parameter back.
This commit is contained in:
@@ -148,7 +148,7 @@ class UpdateReplication:
|
||||
while True:
|
||||
with connect(args.config.get_libpq_dsn()) as conn:
|
||||
start = dt.datetime.now(dt.timezone.utc)
|
||||
state = replication.update(conn, params)
|
||||
state = replication.update(conn, params, socket_timeout=args.socket_timeout)
|
||||
if state is not replication.UpdateState.NO_CHANGES:
|
||||
status.log_status(conn, start, 'import')
|
||||
batchdate, _, _ = status.get_status(conn)
|
||||
|
||||
Reference in New Issue
Block a user