dev@locazia: fix indexer status
This commit is contained in:
parent
3173161d14
commit
94c151d546
|
|
@ -138,7 +138,6 @@ async def indexer_loop(platform_found: bool, seqno: int) -> [bool, int]:
|
|||
make_log("Indexer", f"Item indexed: {item_content_hash_str}", level="info")
|
||||
last_known_index += 1
|
||||
|
||||
await send_status("indexer", f"working (seqno={seqno}, height={last_known_index})")
|
||||
return platform_found, seqno
|
||||
|
||||
|
||||
|
|
@ -152,6 +151,9 @@ async def main_fn():
|
|||
except BaseException as e:
|
||||
make_log("Indexer", f"Error: {e}" + '\n' + traceback.format_exc(), level="error")
|
||||
|
||||
if platform_found:
|
||||
await send_status("indexer", f"working (seqno={seqno})")
|
||||
|
||||
await asyncio.sleep(5)
|
||||
seqno += 1
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue