Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion e2e/resources/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ base:
endpoints: ["localhost:2379"]
api:
clients:
manifest:
repository:
endpoint: http://127.0.0.1:17000
scheduler:
endpoint: http://127.0.0.1:18000
4 changes: 2 additions & 2 deletions pipebuilder/src/api/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ pub async fn bootstrap(
lease_id: i64,
) -> Result<impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone> {
let clients = config.clients;
let manifest_endpoint = clients.manifest.endpoint;
let repository_endpoint = clients.repository.endpoint;
let scheduler_endpoint = clients.scheduler.endpoint;
let manifest_client = RepositoryClient::connect(manifest_endpoint).await?;
let manifest_client = RepositoryClient::connect(repository_endpoint).await?;
let scheduler_client = SchedulerClient::connect(scheduler_endpoint).await?;
let api = api::filters::api(manifest_client, scheduler_client, register, lease_id);
Ok(api)
Expand Down
2 changes: 1 addition & 1 deletion pipebuilder/src/api/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct GrpcClientConfig {

#[derive(Deserialize)]
pub struct GrpcClientConfigs {
pub manifest: GrpcClientConfig,
pub repository: GrpcClientConfig,
pub scheduler: GrpcClientConfig,
}

Expand Down