mirror of
https://github.com/simon987/nyaa.git
synced 2025-12-13 23:29:02 +00:00
added timeout to import and sync es
This commit is contained in:
@@ -51,7 +51,7 @@ NT_DB = 'nyaav2'
|
||||
with open(SAVE_LOC) as f:
|
||||
pos = json.load(f)
|
||||
|
||||
es = Elasticsearch()
|
||||
es = Elasticsearch(timeout=30)
|
||||
|
||||
stream = BinLogStreamReader(
|
||||
# TODO parse out from config.py or something
|
||||
|
||||
Reference in New Issue
Block a user