File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -190,14 +190,14 @@ async def run(self):
190
190
states .append (publisher_state )
191
191
active_publishers_by_symbol [symbol ]["count" ] += 1
192
192
193
- metrics .price_feeds_processed .set (processed_feeds )
193
+ metrics .price_feeds_processed .set (processed_feeds )
194
194
195
- for symbol , info in active_publishers_by_symbol .items ():
196
- metrics .publishers_active .labels (
197
- symbol = symbol , asset_type = info ["asset_type" ]
198
- ).set (info ["count" ])
195
+ for symbol , info in active_publishers_by_symbol .items ():
196
+ metrics .publishers_active .labels (
197
+ symbol = symbol , asset_type = info ["asset_type" ]
198
+ ).set (info ["count" ])
199
199
200
- await self .dispatch .run (states )
200
+ await self .dispatch .run (states )
201
201
202
202
except Exception as e :
203
203
logger .error (f"Error in run loop: { e } " )
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ class Dispatch:
32
32
def __init__ (self , config , publishers ):
33
33
self .config = config
34
34
self .publishers = publishers
35
+ self .open_alerts = {}
35
36
if "ZendutyEvent" in self .config ["events" ]:
36
37
self .open_alerts_file = os .environ ["OPEN_ALERTS_FILE" ]
37
38
self .open_alerts = self .load_alerts ()
You can’t perform that action at this time.
0 commit comments