File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " hermes"
3
- version = " 0.5.6 "
3
+ version = " 0.5.7 "
4
4
description = " Hermes is an agent that provides Verified Prices from the Pythnet Pyth Oracle."
5
5
edition = " 2021"
6
6
Original file line number Diff line number Diff line change @@ -323,27 +323,27 @@ where
323
323
// Update the aggregate state
324
324
let mut aggregate_state = self . into ( ) . data . write ( ) . await ;
325
325
326
- // Check if the update is new or out of order
327
- match aggregate_state. latest_completed_slot {
326
+ // Send update event to subscribers. We are purposefully ignoring the result
327
+ // because there might be no subscribers.
328
+ let _ = match aggregate_state. latest_completed_slot {
328
329
None => {
329
330
aggregate_state. latest_completed_slot . replace ( slot) ;
330
331
self . into ( )
331
332
. api_update_tx
332
- . send ( AggregationEvent :: New { slot } ) ? ;
333
+ . send ( AggregationEvent :: New { slot } )
333
334
}
334
335
Some ( latest) if slot > latest => {
335
336
self . prune_removed_keys ( message_state_keys) . await ;
336
337
aggregate_state. latest_completed_slot . replace ( slot) ;
337
338
self . into ( )
338
339
. api_update_tx
339
- . send ( AggregationEvent :: New { slot } ) ? ;
340
+ . send ( AggregationEvent :: New { slot } )
340
341
}
341
- _ => {
342
- self . into ( )
343
- . api_update_tx
344
- . send ( AggregationEvent :: OutOfOrder { slot } ) ?;
345
- }
346
- }
342
+ _ => self
343
+ . into ( )
344
+ . api_update_tx
345
+ . send ( AggregationEvent :: OutOfOrder { slot } ) ,
346
+ } ;
347
347
348
348
aggregate_state. latest_completed_slot = aggregate_state
349
349
. latest_completed_slot
You can’t perform that action at this time.
0 commit comments