File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff 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 for verifing to Aquila.
48+ pub aquila_token : String ,
49+
4550 /// Definition Path
4651 ///
4752 /// Path to the root definition folder.
@@ -73,6 +78,10 @@ impl AdapterConfig {
7378 "AQUILA_URL" ,
7479 String :: from ( "grpc://localhost:50051" ) ,
7580 ) ;
81+ let aquila_token = code0_flow:: flow_config:: env_with_default (
82+ "AQUILA_TOKEN" ,
83+ String :: from ( "token" ) ,
84+ ) ;
7685
7786 let environment =
7887 code0_flow:: flow_config:: env_with_default ( "ENVIRONMENT" , Environment :: Development ) ;
@@ -94,6 +103,7 @@ impl AdapterConfig {
94103 grpc_port,
95104 grpc_host,
96105 aquila_url,
106+ aquila_token,
97107 definition_path,
98108 with_health_service,
99109 draco_variant,
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments