Skip to content

Commit d39685c

Browse files
committed
fix(observer): revert changes made for local debugging
1 parent bf26d84 commit d39685c

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

pyth_observer/__init__.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ async def run(self):
7777
coingecko_prices, coingecko_updates = await self.get_coingecko_prices()
7878
crosschain_prices = await self.get_crosschain_prices()
7979

80-
failed_checks = []
8180
for product in products:
8281
# Skip tombstone accounts with blank metadata
8382
if "base" not in product.attrs:
@@ -160,16 +159,10 @@ async def run(self):
160159
)
161160
)
162161

163-
cur_failed_checks = await self.dispatch.run(states)
164-
if cur_failed_checks:
165-
failed_checks.extend(cur_failed_checks)
162+
await self.dispatch.run(states)
166163

167-
if failed_checks:
168-
logger.error(f"Failed checks: {len(failed_checks)}")
169-
else:
170-
logger.info("All checks passed")
171164
logger.debug("Sleeping...")
172-
await asyncio.sleep(30)
165+
await asyncio.sleep(5)
173166

174167
async def get_pyth_products(self) -> List[PythProductAccount]:
175168
logger.debug("Fetching Pyth product accounts...")

pyth_observer/check/price_feed.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ def error_message(self) -> dict:
277277

278278

279279
PRICE_FEED_CHECKS = [
280-
# PriceFeedCoinGeckoCheck,
281-
# PriceFeedCrossChainDeviationCheck,
282-
# PriceFeedCrossChainOnlineCheck,
283-
# PriceFeedOfflineCheck,
280+
PriceFeedCoinGeckoCheck,
281+
PriceFeedCrossChainDeviationCheck,
282+
PriceFeedCrossChainOnlineCheck,
283+
PriceFeedOfflineCheck,
284284
]

0 commit comments

Comments
 (0)