Skip to content

Commit 825f80e

Browse files
committed
review fixes
1 parent 201c4a8 commit 825f80e

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

pyth_observer/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import asyncio
22
import os
3-
import pprint
43
from typing import Any, Dict, List, Tuple
54

65
from base58 import b58decode

pyth_observer/cli.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,8 @@ def run(config, publishers, coingecko_mapping, prometheus_port):
6363
start_http_server(int(prometheus_port))
6464

6565
async def main():
66-
# Start health server in background
6766
health_task = asyncio.create_task(start_health_server())
68-
# Run observer
6967
await observer.run()
70-
# Optionally, wait for health server (should run forever)
71-
await health_task
7268

7369
asyncio.run(main())
7470

pyth_observer/health_server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ async def start_health_server(port=8080):
2020
await runner.setup()
2121
site = web.TCPSite(runner, "0.0.0.0", port)
2222
await site.start()
23-
# Keep running forever
2423
while True:
2524
await asyncio.sleep(3600)
2625

0 commit comments

Comments
 (0)