Skip to content

Commit

Permalink
fix(chain-ops): Fix linter-reported issues
Browse files Browse the repository at this point in the history
  • Loading branch information
KirilMihaylov committed Aug 21, 2024
1 parent a89fe75 commit 4755a99
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions chain-ops/src/node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub trait Reconnect {
}

#[derive(Clone)]
#[must_use]
pub struct Client
where
Self: Reconnect,
Expand Down
1 change: 1 addition & 0 deletions chain-ops/src/signer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ impl Signer {
}
}

#[must_use]
pub struct GasAndFeeConfiguration {
pub gas_adjustment_numerator: u32,
pub gas_adjustment_denominator: NonZeroU32,
Expand Down
5 changes: 5 additions & 0 deletions chain-ops/src/supervisor/configuration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,27 @@ impl Service {
&self.admin_contract
}

#[must_use]
pub fn idle_duration(&self) -> Duration {
self.idle_duration
}

#[must_use]
pub fn timeout_duration(&self) -> Duration {
self.timeout_duration
}

#[must_use]
pub fn balance_reporter_idle_duration(&self) -> Duration {
self.balance_reporter_idle_duration
}

#[must_use]
pub fn broadcast_delay_duration(&self) -> Duration {
self.broadcast_delay_duration
}

#[must_use]
pub fn broadcast_retry_delay_duration(&self) -> Duration {
self.broadcast_retry_delay_duration
}
Expand Down

0 comments on commit 4755a99

Please sign in to comment.