Skip to content

Commit a3a6cce

Browse files
committed
rename: LexeApiClient -> NodeApiClient
1 parent 7b81ad0 commit a3a6cce

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

node/src/api/client.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! This file contains LexeApiClient, the concrete impl of the ApiClient trait.
1+
//! This file contains NodeApiClient, the concrete impl of the ApiClient trait.
22
33
use std::fmt::{self, Display};
44

@@ -39,13 +39,13 @@ impl Display for ApiVersion {
3939
}
4040
}
4141

42-
pub struct LexeApiClient {
42+
pub struct NodeApiClient {
4343
rest: RestClient,
4444
backend_url: String,
4545
runner_url: String,
4646
}
4747

48-
impl LexeApiClient {
48+
impl NodeApiClient {
4949
pub fn new(backend_url: String, runner_url: String) -> Self {
5050
let rest = RestClient::new();
5151
Self {
@@ -57,7 +57,7 @@ impl LexeApiClient {
5757
}
5858

5959
#[async_trait]
60-
impl ApiClient for LexeApiClient {
60+
impl ApiClient for NodeApiClient {
6161
async fn create_file_with_retries(
6262
&self,
6363
data: &NodeFile,
@@ -82,7 +82,7 @@ impl ApiClient for LexeApiClient {
8282
}
8383

8484
#[async_trait]
85-
impl NodeBackendApi for LexeApiClient {
85+
impl NodeBackendApi for NodeApiClient {
8686
async fn get_node(
8787
&self,
8888
user_pk: UserPk,
@@ -167,7 +167,7 @@ impl NodeBackendApi for LexeApiClient {
167167
}
168168

169169
#[async_trait]
170-
impl NodeRunnerApi for LexeApiClient {
170+
impl NodeRunnerApi for NodeApiClient {
171171
async fn ready(
172172
&self,
173173
data: UserPorts,
@@ -177,7 +177,7 @@ impl NodeRunnerApi for LexeApiClient {
177177
}
178178
}
179179

180-
impl LexeApiClient {
180+
impl NodeApiClient {
181181
/// Constructs the request URL including the base, version, and endpoint
182182
/// (NOT including the query string)
183183
fn build_url(

node/src/cli/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use common::cli::NodeCommand;
66
use common::enclave;
77
use common::rng::SysRng;
88

9-
use crate::api::LexeApiClient;
9+
use crate::api::NodeApiClient;
1010
use crate::init::UserNode;
1111
use crate::provision::provision;
1212

@@ -42,7 +42,7 @@ impl Args {
4242
);
4343
let measurement = enclave::measurement();
4444
let mut rng = SysRng::new();
45-
let api = Arc::new(LexeApiClient::new(
45+
let api = Arc::new(NodeApiClient::new(
4646
args.backend_url.clone(),
4747
args.runner_url.clone(),
4848
));

node/src/init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ fn init_api(args: &RunArgs) -> ApiClientType {
494494
// Production can only use the real api client
495495
#[cfg(all(target_env = "sgx", not(test)))]
496496
{
497-
Arc::new(api::LexeApiClient::new(
497+
Arc::new(api::NodeApiClient::new(
498498
args.backend_url.clone(),
499499
args.runner_url.clone(),
500500
))
@@ -505,7 +505,7 @@ fn init_api(args: &RunArgs) -> ApiClientType {
505505
if args.mock {
506506
Arc::new(api::mock::MockApiClient::new())
507507
} else {
508-
Arc::new(api::LexeApiClient::new(
508+
Arc::new(api::NodeApiClient::new(
509509
args.backend_url.clone(),
510510
args.runner_url.clone(),
511511
))

0 commit comments

Comments
 (0)