Skip to content

Commit 7d360f1

Browse files
committed
shim: add no_retry flag
1 parent df82796 commit 7d360f1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

sugondat/shim/src/cli.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ pub struct SugondatRpcParams {
8787
/// The address of the sugondat-node to connect to.
8888
#[clap(long, default_value = "ws://localhost:9988", env = ENV_SUGONDAT_NODE_URL)]
8989
pub node_url: String,
90+
91+
/// By default, the connection to the sugondat-node is persistent.
92+
/// If, for any reason, it's impossible to connect to the sugondato-node
93+
/// or if it fails while connected, it retries to reestablish the connection.
94+
///
95+
/// This flag avoids this behavior by attempting only a single connection
96+
#[clap(long, default_value = "false", default_missing_value = "true")]
97+
pub no_retry: bool,
9098
}
9199

92100
impl DockParams {

0 commit comments

Comments
 (0)