Skip to content

Commit

Permalink
refactor(chain-ops): Add #[inline] attribute to constructor methods…
Browse files Browse the repository at this point in the history
… of `Broadcast`.
  • Loading branch information
KirilMihaylov committed Sep 26, 2024
1 parent 93d37db commit c3fbf42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chain-ops/src/task/broadcast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ impl<Expiration> Broadcast<Expiration>
where
Expiration: TxExpiration,
{
#[inline]
pub const fn new(
client: node::BroadcastTx,
signer: Signer,
Expand Down Expand Up @@ -268,6 +269,7 @@ where
{
type TxExpiration = Expiration;

#[inline]
fn new(
service_configuration: &Self::ServiceConfiguration,
transaction_rx: channel::unbounded::Receiver<
Expand Down

0 comments on commit c3fbf42

Please sign in to comment.