Skip to content

Commit

Permalink
fix(iroh): do not exit after commands (n0-computer#1899)
Browse files Browse the repository at this point in the history
Otherwise the console exits after each command
  • Loading branch information
dignifiedquire authored and fubuloubu committed Feb 21, 2024
1 parent e53638d commit ee1186b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions iroh/src/commands/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,12 @@ impl RpcCommands {
where
C: ServiceConnection<ProviderService>,
{
let res = match self {
match self {
Self::Node { command } => command.run(iroh).await,
Self::Blob { command } => command.run(iroh).await,
Self::Doc { command } => command.run(iroh, env).await,
Self::Author { command } => command.run(iroh, env).await,
Self::Tag { command } => command.run(iroh).await,
};
match res {
Ok(()) => std::process::exit(0),
Err(err) => {
tracing::error!("{:?}", err);
std::process::exit(1)
}
}
}
}
Expand Down

0 comments on commit ee1186b

Please sign in to comment.