Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected mismatch in config.toml comment #2751

Merged
merged 2 commits into from
Oct 20, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Updated comment in 'config.toml' to correctly state that the default …
…value of 'clear_on_start' is 'true' and removed unused Default implementation for Packet
  • Loading branch information
ljoss17 committed Oct 20, 2022
commit 1f0137c91164561952ae98656d295cf4d528e265
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ enabled = true
# periodic packet clearing. [Default: 100]
clear_interval = 100

# Whether or not to clear packets on start. [Default: false]
# Whether or not to clear packets on start. [Default: true]
clear_on_start = true

# Toggle the transaction confirmation mechanism.
Expand Down
11 changes: 0 additions & 11 deletions crates/relayer/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,6 @@ pub struct Packets {
pub tx_confirmation: bool,
}

impl Default for Packets {
fn default() -> Self {
Self {
enabled: false,
clear_interval: default::clear_packets_interval(),
clear_on_start: false,
tx_confirmation: default::tx_confirmation(),
}
}
}

/// Log levels are wrappers over [`tracing_core::Level`].
///
/// [`tracing_core::Level`]: https://docs.rs/tracing-core/0.1.17/tracing_core/struct.Level.html
Expand Down