feat(cli): implements subcommands
This commit is contained in:
parent
7382b06bdf
commit
3fefadd5b5
5 changed files with 37 additions and 50 deletions
|
|
@ -86,17 +86,3 @@ impl JunoServices for GRPCServer {
|
|||
Ok(Response::new(StatusResponse {}))
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl super::Connection for GRPCServer {
|
||||
async fn connect(&self) -> Result<(), Box<dyn Error>> {
|
||||
println!("Starting server on: \"{}\"", CONFIG.address.to_string());
|
||||
|
||||
Server::builder()
|
||||
.add_service(JunoServicesServer::new(GRPCServer::default()))
|
||||
.serve(CONFIG.address)
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue