Skip to content

Commit

Permalink
fix(observer): fix ci and pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tejasbadadare committed Nov 14, 2024
1 parent 7e34307 commit bba309b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions pyth_observer/check/publisher.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from collections import defaultdict, deque
import time
from collections import defaultdict, deque
from dataclasses import asdict, dataclass
from datetime import datetime
from typing import Dict, List, Optional, Protocol, runtime_checkable
from typing import Dict, Protocol, runtime_checkable
from zoneinfo import ZoneInfo

from loguru import logger
from pythclient.calendar import is_market_open
from pythclient.pythaccounts import PythPriceStatus
Expand Down Expand Up @@ -257,9 +258,9 @@ def __init__(self, state: PublisherState, config: PublisherCheckConfig):
self.__abandoned_time_limit: int = int(config["abandoned_time_limit"])
self.__max_slot_distance: int = int(config["max_slot_distance"])

from pyth_observer.check.stall_detection import (
from pyth_observer.check.stall_detection import ( # noqa: deferred import to avoid circular import
StallDetector,
) # noqa: deferred import to avoid circular import
)

self.__detector = StallDetector(
stall_time_limit=self.__stall_time_limit,
Expand Down
2 changes: 1 addition & 1 deletion pyth_observer/check/stall_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def no_stall(cls) -> "StallDetectionResult":
base_price=None,
noise_magnitude=None,
duration=0.0,
confidence=0.0,
confidence=1.0,
)


Expand Down

0 comments on commit bba309b

Please sign in to comment.