forked from spacebar/rust-nex
grpc client
This commit is contained in:
parent
9a11863aa7
commit
70e74b4e6b
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ pub struct Client(NexAccountServiceClient<Channel>); //(reqwest::Client);
|
|||
|
||||
impl Client {
|
||||
pub async fn new() -> Result<Self> {
|
||||
let client = NexAccountServiceClient::connect(NEX_ACCOUNT_URL.as_str()).await?;
|
||||
let client = nex_account::grpc_client().await.unwrap();
|
||||
Ok(Self(client))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue