Skip to content
Closed
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
shim: add no_retry flag
  • Loading branch information
gabriele-0201 committed Jan 11, 2024
commit 7d360f1cd1dd8f95ecf409cb7863dba0fd8a24af
8 changes: 8 additions & 0 deletions sugondat/shim/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ pub struct SugondatRpcParams {
/// The address of the sugondat-node to connect to.
#[clap(long, default_value = "ws://localhost:9988", env = ENV_SUGONDAT_NODE_URL)]
pub node_url: String,

/// By default, the connection to the sugondat-node is persistent.
/// If, for any reason, it's impossible to connect to the sugondato-node
/// or if it fails while connected, it retries to reestablish the connection.
///
/// This flag avoids this behavior by attempting only a single connection
#[clap(long, default_value = "false", default_missing_value = "true")]
pub no_retry: bool,
}

impl DockParams {
Expand Down