Skip to content

Commit 625a7eb

Browse files
Merge pull request #193 from code0-tech/dep/update-code0-flow
Update code0-flow
2 parents aeec85c + 0036be6 commit 625a7eb

4 files changed

Lines changed: 17 additions & 28 deletions

File tree

Cargo.lock

Lines changed: 7 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = "0.0.0"
77
edition = "2024"
88

99
[workspace.dependencies]
10-
code0-flow = { version = "0.0.29" }
10+
code0-flow = { version = "0.0.30" }
1111
tucana = { version = "0.0.68", features = ["aquila"] }
1212
serde_json = { version = "1.0.138" }
1313
log = "0.4.27"

crates/base/src/config.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ pub struct AdapterConfig {
4242
/// URL of the Aquila server to connect to.
4343
pub aquila_url: String,
4444

45+
/// Aquila Token
46+
///
47+
/// Token used to authenticate with Aquila.
48+
pub aquila_token: String,
49+
4550
/// Definition Path
4651
///
4752
/// Path to the root definition folder.
@@ -73,6 +78,8 @@ impl AdapterConfig {
7378
"AQUILA_URL",
7479
String::from("grpc://localhost:50051"),
7580
);
81+
let aquila_token =
82+
code0_flow::flow_config::env_with_default("AQUILA_TOKEN", String::from("token"));
7683

7784
let environment =
7885
code0_flow::flow_config::env_with_default("ENVIRONMENT", Environment::Development);
@@ -94,6 +101,7 @@ impl AdapterConfig {
94101
grpc_port,
95102
grpc_host,
96103
aquila_url,
104+
aquila_token,
97105
definition_path,
98106
with_health_service,
99107
draco_variant,

crates/base/src/runner.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ impl<C: LoadConfig> ServerRunner<C> {
8787
let definition_service = FlowUpdateService::from_url(
8888
config.aquila_url.clone(),
8989
config.definition_path.as_str(),
90+
config.aquila_token.clone(),
9091
)
9192
.await;
9293
definition_service.send().await;

0 commit comments

Comments
 (0)