Muttered3 commited on
Commit
91fe600
·
verified ·
1 Parent(s): 4c2a217

Update worker.py

Browse files
Files changed (1) hide show
  1. worker.py +3 -2
worker.py CHANGED
@@ -41,7 +41,8 @@ async def start_worker(worker_id: int):
41
  traceback.print_exc()
42
  await asyncio.sleep(2)
43
 
44
- async def main():
 
45
  print("🚀 Sniper Engine Starting...")
46
  concurrency = await db.get_concurrency()
47
 
@@ -54,4 +55,4 @@ async def main():
54
  await asyncio.gather(*tasks, return_exceptions=True)
55
 
56
  if __name__ == "__main__":
57
- asyncio.run(main())
 
41
  traceback.print_exc()
42
  await asyncio.sleep(2)
43
 
44
+ # --- RENAMED TO MATCH YOUR main.py ---
45
+ async def run_worker():
46
  print("🚀 Sniper Engine Starting...")
47
  concurrency = await db.get_concurrency()
48
 
 
55
  await asyncio.gather(*tasks, return_exceptions=True)
56
 
57
  if __name__ == "__main__":
58
+ asyncio.run(run_worker())