Skip to content

Commit

Permalink
fix(rust): relay create deprecated warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianbenavides committed Oct 29, 2024
1 parent e895fd7 commit fdb5469
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions implementations/rust/ockam/ockam_command/src/relay/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,17 @@ impl Command for CreateCommand {
}

async fn async_run(self, ctx: &Context, opts: CommandGlobalOpts) -> crate::Result<()> {
if self.project_relay {
print_deprecated_flag_warning(&opts, "--project-relay")?;
}

initialize_default_node(ctx, &opts).await?;

let cmd = self.parse_args(&opts).await?;
let at = cmd.at();
let alias = cmd.relay_name();
let return_timing = cmd.return_timing();

if cmd.project_relay {
print_deprecated_flag_warning(&opts, "--project-relay")?;
}

let node = BackgroundNodeClient::create(ctx, &opts.state, &cmd.to).await?;
let relay_info = {
if at.starts_with(Project::CODE) && cmd.authorized.is_some() {
Expand Down

0 comments on commit fdb5469

Please sign in to comment.