Skip to content

Commit

Permalink
Merge branch 'master' of github.com:calimero-network/core into feat--…
Browse files Browse the repository at this point in the history
…add-bootstrap-to-meroctl
  • Loading branch information
MatejVukosav committed Dec 20, 2024
2 parents 682d1e9 + bb54d55 commit 3744997
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/meroctl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "meroctl"
version = "0.2.1"
version = "0.2.0"
authors.workspace = true
edition.workspace = true
repository.workspace = true
Expand Down
2 changes: 0 additions & 2 deletions crates/meroctl/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ pub enum SubCommands {
App(AppCommand),
Context(ContextCommand),
Identity(IdentityCommand),
JsonRpc(CallCommand),
Proxy(ProxyCommand),
Call(CallCommand),
Bootstrap(BootstrapCommand),
Expand Down Expand Up @@ -104,7 +103,6 @@ impl RootCommand {
SubCommands::App(application) => application.run(&environment).await,
SubCommands::Context(context) => context.run(&environment).await,
SubCommands::Identity(identity) => identity.run(&environment).await,
SubCommands::JsonRpc(jsonrpc) => jsonrpc.run(&environment).await,
SubCommands::Proxy(proxy) => proxy.run(&environment).await,
SubCommands::Call(call) => call.run(&environment).await,
SubCommands::Bootstrap(call) => call.run(&environment).await,
Expand Down
5 changes: 3 additions & 2 deletions crates/meroctl/src/cli/bootstrap/start.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ impl StartBootstrapCommand {
) -> EyreResult<()> {
println!(
"Inviting node {:?} to context {:?}",
invitee_environment.args.node_name, context_id
invitee_environment.args.node_name,
context_id.to_string()
);

let invite_command = InviteCommand {
Expand All @@ -208,7 +209,7 @@ impl StartBootstrapCommand {
private_key: invitee_private_key,
invitation_payload,
};
join_command.join(invitee_environment).await?;
join_command.run(invitee_environment).await?;
println!(
"Node {:?} joined successfully.",
invitee_environment.args.node_name
Expand Down
5 changes: 0 additions & 5 deletions crates/meroctl/src/cli/context/join.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ impl Report for JoinContextResponse {

impl JoinCommand {
pub async fn run(self, environment: &Environment) -> EyreResult<()> {
let _ignored = self.join(environment).await?;
Ok(())
}

pub async fn join(self, environment: &Environment) -> EyreResult<()> {
let config = load_config(&environment.args.home, &environment.args.node_name)?;

let response: JoinContextResponse = do_request(
Expand Down

0 comments on commit 3744997

Please sign in to comment.