@@ -47,8 +47,8 @@ const DEFAULT_WITHDRAWALS_SUBSCRIBE_TOPIC: (&str, &str) =
4747 ( "withdrawals-subscribe-topic" , "cardano.withdrawals" ) ;
4848const DEFAULT_GOVERNANCE_SUBSCRIBE_TOPIC : ( & str , & str ) =
4949 ( "governance-subscribe-topic" , "cardano.governance" ) ;
50- const DEFAULT_BLOCKS_SUBSCRIBE_TOPIC : ( & str , & str ) =
51- ( "blocks -subscribe-topic" , "cardano.block.proposed" ) ;
50+ const DEFAULT_BLOCK_SUBSCRIBE_TOPIC : ( & str , & str ) =
51+ ( "block -subscribe-topic" , "cardano.block.proposed" ) ;
5252const DEFAULT_EPOCH_ACTIVITY_SUBSCRIBE_TOPIC : ( & str , & str ) =
5353 ( "epoch-activity-subscribe-topic" , "cardano.epoch.activity" ) ;
5454const DEFAULT_SPDD_SUBSCRIBE_TOPIC : ( & str , & str ) =
@@ -87,7 +87,7 @@ impl SPOState {
8787 store_config : & StoreConfig ,
8888 // subscribers
8989 mut certificates_subscription : Box < dyn Subscription < Message > > ,
90- mut blocks_subscription : Box < dyn Subscription < Message > > ,
90+ mut block_subscription : Box < dyn Subscription < Message > > ,
9191 mut withdrawals_subscription : Option < Box < dyn Subscription < Message > > > ,
9292 mut governance_subscription : Option < Box < dyn Subscription < Message > > > ,
9393 mut epoch_activity_subscription : Box < dyn Subscription < Message > > ,
@@ -113,7 +113,7 @@ impl SPOState {
113113
114114 // read per-block topics in parallel
115115 let certs_message_f = certificates_subscription. read ( ) ;
116- let blocks_message_f = blocks_subscription . read ( ) ;
116+ let block_message_f = block_subscription . read ( ) ;
117117 let withdrawals_message_f = withdrawals_subscription. as_mut ( ) . map ( |s| s. read ( ) ) ;
118118 let governance_message_f = governance_subscription. as_mut ( ) . map ( |s| s. read ( ) ) ;
119119 let stake_deltas_message_f = stake_deltas_subscription. as_mut ( ) . map ( |s| s. read ( ) ) ;
@@ -140,7 +140,7 @@ impl SPOState {
140140
141141 // handle blocks (handle_mint) before handle_tx_certs
142142 // in case of epoch boundary
143- let ( _, block_message) = blocks_message_f . await ?;
143+ let ( _, block_message) = block_message_f . await ?;
144144 match block_message. as_ref ( ) {
145145 Message :: Cardano ( ( block_info, CardanoMessage :: BlockAvailable ( block_msg) ) ) => {
146146 let span =
@@ -438,10 +438,10 @@ impl SPOState {
438438 . unwrap_or ( DEFAULT_SPO_REWARDS_SUBSCRIBE_TOPIC . 1 . to_string ( ) ) ;
439439 info ! ( "Creating SPO rewards subscriber on '{spo_rewards_subscribe_topic}'" ) ;
440440
441- let blocks_subscribe_topic = config
442- . get_string ( DEFAULT_BLOCKS_SUBSCRIBE_TOPIC . 0 )
443- . unwrap_or ( DEFAULT_BLOCKS_SUBSCRIBE_TOPIC . 1 . to_string ( ) ) ;
444- info ! ( "Creating blocks subscriber on '{blocks_subscribe_topic }'" ) ;
441+ let block_subscribe_topic = config
442+ . get_string ( DEFAULT_BLOCK_SUBSCRIBE_TOPIC . 0 )
443+ . unwrap_or ( DEFAULT_BLOCK_SUBSCRIBE_TOPIC . 1 . to_string ( ) ) ;
444+ info ! ( "Creating block subscriber on '{block_subscribe_topic }'" ) ;
445445
446446 let stake_reward_deltas_subscribe_topic = config
447447 . get_string ( DEFAULT_STAKE_REWARD_DELTAS_SUBSCRIBE_TOPIC . 0 )
@@ -765,7 +765,7 @@ impl SPOState {
765765
766766 // Subscriptions
767767 let certificates_subscription = context. subscribe ( & certificates_subscribe_topic) . await ?;
768- let blocks_subscription = context. subscribe ( & blocks_subscribe_topic ) . await ?;
768+ let block_subscription = context. subscribe ( & block_subscribe_topic ) . await ?;
769769 let epoch_activity_subscription =
770770 context. subscribe ( & epoch_activity_subscribe_topic) . await ?;
771771 let spdd_subscription = context. subscribe ( & spdd_subscribe_topic) . await ?;
@@ -811,7 +811,7 @@ impl SPOState {
811811 retired_pools_history,
812812 & store_config,
813813 certificates_subscription,
814- blocks_subscription ,
814+ block_subscription ,
815815 withdrawals_subscription,
816816 governance_subscription,
817817 epoch_activity_subscription,
0 commit comments