@@ -25,7 +25,6 @@ use mithril_common::api_version::APIVersionProvider;
2525use mithril_common:: crypto_helper:: {
2626 KesSigner , KesSignerStandard , OpCert , ProtocolPartyId , SerDeShelleyFileFormat ,
2727} ;
28- #[ cfg( feature = "future_dmq" ) ]
2928use mithril_common:: messages:: RegisterSignatureMessageDmq ;
3029use mithril_common:: signable_builder:: {
3130 CardanoStakeDistributionSignableBuilder , CardanoTransactionsSignableBuilder ,
@@ -44,11 +43,9 @@ use mithril_persistence::sqlite::{ConnectionBuilder, SqliteConnection, SqliteCon
4443
4544use mithril_protocol_config:: http:: HttpMithrilNetworkConfigurationProvider ;
4645
47- #[ cfg( feature = "future_dmq" ) ]
4846use mithril_dmq:: { DmqMessageBuilder , DmqPublisherClientPallas } ;
4947
5048use crate :: dependency_injection:: SignerDependencyContainer ;
51- #[ cfg( feature = "future_dmq" ) ]
5249use crate :: services:: SignaturePublisherDmq ;
5350use crate :: services:: {
5451 CardanoTransactionsImporter , CardanoTransactionsPreloaderActivationSigner , MithrilEpochService ,
@@ -425,7 +422,6 @@ impl<'a> DependenciesBuilder<'a> {
425422 _ => None ,
426423 } ;
427424
428- #[ cfg( feature = "future_dmq" ) ]
429425 let signature_publisher = {
430426 let first_publisher = SignaturePublisherRetrier :: new (
431427 match & self . config . dmq_node_socket_path {
@@ -473,35 +469,6 @@ impl<'a> DependenciesBuilder<'a> {
473469 }
474470 } ;
475471
476- #[ cfg( not( feature = "future_dmq" ) ) ]
477- let signature_publisher = {
478- let first_publisher = SignaturePublisherRetrier :: new (
479- Arc :: new ( SignaturePublisherNoop ) as Arc < dyn SignaturePublisher > ,
480- SignaturePublishRetryPolicy :: never ( ) ,
481- ) ;
482-
483- let second_publisher = SignaturePublisherRetrier :: new (
484- aggregator_client. clone ( ) ,
485- SignaturePublishRetryPolicy {
486- attempts : self . config . signature_publisher_config . retry_attempts ,
487- delay_between_attempts : Duration :: from_millis (
488- self . config . signature_publisher_config . retry_delay_ms ,
489- ) ,
490- } ,
491- ) ;
492-
493- if self . config . signature_publisher_config . skip_delayer {
494- Arc :: new ( second_publisher) as Arc < dyn SignaturePublisher >
495- } else {
496- Arc :: new ( SignaturePublisherDelayer :: new (
497- Arc :: new ( first_publisher) ,
498- Arc :: new ( second_publisher) ,
499- Duration :: from_millis ( self . config . signature_publisher_config . delayer_delay_ms ) ,
500- self . root_logger ( ) ,
501- ) ) as Arc < dyn SignaturePublisher >
502- }
503- } ;
504-
505472 let certifier = Arc :: new ( SignerCertifierService :: new (
506473 signed_beacon_repository,
507474 Arc :: new ( SignerSignedEntityConfigProvider :: new ( epoch_service. clone ( ) ) ) ,
0 commit comments