Skip to content

Commit

Permalink
refactor(chain-ops): Reuse new constructor method for Broadcast.
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov committed Sep 26, 2024
1 parent 089bb89 commit 93d37db
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions chain-ops/src/task/broadcast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,12 @@ where
TxPackage<Self::TxExpiration>,
>,
) -> Self {
Self {
client: service_configuration.node_client().clone().broadcast_tx(),
signer: service_configuration.signer().clone(),
Self::new(
service_configuration.node_client().clone().broadcast_tx(),
service_configuration.signer().clone(),
transaction_rx,
delay_duration: service_configuration.broadcast_delay_duration(),
retry_delay_duration: service_configuration
.broadcast_retry_delay_duration(),
}
service_configuration.broadcast_delay_duration(),
service_configuration.broadcast_retry_delay_duration(),
)
}
}

0 comments on commit 93d37db

Please sign in to comment.