Skip to content

Commit bba309b

Browse files
committed
fix(observer): fix ci and pr comments
1 parent 7e34307 commit bba309b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

pyth_observer/check/publisher.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
from collections import defaultdict, deque
21
import time
2+
from collections import defaultdict, deque
33
from dataclasses import asdict, dataclass
44
from datetime import datetime
5-
from typing import Dict, List, Optional, Protocol, runtime_checkable
5+
from typing import Dict, Protocol, runtime_checkable
66
from zoneinfo import ZoneInfo
7+
78
from loguru import logger
89
from pythclient.calendar import is_market_open
910
from pythclient.pythaccounts import PythPriceStatus
@@ -257,9 +258,9 @@ def __init__(self, state: PublisherState, config: PublisherCheckConfig):
257258
self.__abandoned_time_limit: int = int(config["abandoned_time_limit"])
258259
self.__max_slot_distance: int = int(config["max_slot_distance"])
259260

260-
from pyth_observer.check.stall_detection import (
261+
from pyth_observer.check.stall_detection import ( # noqa: deferred import to avoid circular import
261262
StallDetector,
262-
) # noqa: deferred import to avoid circular import
263+
)
263264

264265
self.__detector = StallDetector(
265266
stall_time_limit=self.__stall_time_limit,

pyth_observer/check/stall_detection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def no_stall(cls) -> "StallDetectionResult":
2828
base_price=None,
2929
noise_magnitude=None,
3030
duration=0.0,
31-
confidence=0.0,
31+
confidence=1.0,
3232
)
3333

3434

0 commit comments

Comments
 (0)