File tree Expand file tree Collapse file tree 5 files changed +14
-26
lines changed Expand file tree Collapse file tree 5 files changed +14
-26
lines changed Original file line number Diff line number Diff line change 1- pub mod search;
21pub mod download;
32pub mod feature;
3+ pub mod push;
44pub mod report;
5+ pub mod search;
56pub mod watch;
6- pub mod push;
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ pub fn get_authorization_metadata(token: &str) -> MetadataMap {
1212 let mut map = MetadataMap :: new ( ) ;
1313 map. insert ( "authorization" , metadata_value) ;
1414 map
15- }
15+ }
Original file line number Diff line number Diff line change @@ -27,16 +27,11 @@ impl SagittariusDataTypeServiceClient {
2727 Self { client, token }
2828 }
2929
30- pub async fn update_data_types (
31- & mut self ,
32- data_types : Vec < DefinitionDataType > ,
33- ) {
30+ pub async fn update_data_types ( & mut self , data_types : Vec < DefinitionDataType > ) {
3431 let request = Request :: from_parts (
3532 get_authorization_metadata ( & self . token ) ,
3633 Extensions :: new ( ) ,
37- SagittariusDataTypeUpdateRequest {
38- data_types,
39- } ,
34+ SagittariusDataTypeUpdateRequest { data_types } ,
4035 ) ;
4136
4237 match self . client . update ( request) . await {
Original file line number Diff line number Diff line change 1+ use crate :: command:: push:: auth:: get_authorization_metadata;
12use tonic:: Extensions ;
23use tonic:: Request ;
34use tonic:: transport:: Channel ;
45use tucana:: sagittarius:: FlowTypeUpdateRequest as SagittariusFlowTypeUpdateRequest ;
56use tucana:: sagittarius:: flow_type_service_client:: FlowTypeServiceClient ;
67use tucana:: shared:: FlowType ;
7- use crate :: command:: push:: auth:: get_authorization_metadata;
88
99pub struct SagittariusFlowTypeServiceClient {
1010 client : FlowTypeServiceClient < Channel > ,
@@ -27,19 +27,14 @@ impl SagittariusFlowTypeServiceClient {
2727 Self { client, token }
2828 }
2929
30- pub async fn update_flow_types (
31- & mut self ,
32- flow_types : Vec < FlowType > ,
33- ) {
30+ pub async fn update_flow_types ( & mut self , flow_types : Vec < FlowType > ) {
3431 let request = Request :: from_parts (
3532 get_authorization_metadata ( & self . token ) ,
3633 Extensions :: new ( ) ,
37- SagittariusFlowTypeUpdateRequest {
38- flow_types,
39- } ,
34+ SagittariusFlowTypeUpdateRequest { flow_types } ,
4035 ) ;
4136
42- match self . client . update ( request) . await {
37+ match self . client . update ( request) . await {
4338 Ok ( response) => {
4439 log:: info!(
4540 "Successfully transferred FlowTypes. Did Sagittarius updated them? {:?}" ,
@@ -51,4 +46,4 @@ impl SagittariusFlowTypeServiceClient {
5146 }
5247 } ;
5348 }
54- }
49+ }
Original file line number Diff line number Diff line change 1+ use crate :: command:: push:: auth:: get_authorization_metadata;
12use tonic:: Extensions ;
23use tonic:: Request ;
34use tonic:: transport:: Channel ;
45use tucana:: sagittarius:: RuntimeFunctionDefinitionUpdateRequest as SagittariusRuntimeFunctionUpdateRequest ;
56use tucana:: sagittarius:: runtime_function_definition_service_client:: RuntimeFunctionDefinitionServiceClient ;
67use tucana:: shared:: RuntimeFunctionDefinition ;
7- use crate :: command:: push:: auth:: get_authorization_metadata;
88
99pub struct SagittariusRuntimeFunctionServiceClient {
1010 client : RuntimeFunctionDefinitionServiceClient < Channel > ,
@@ -30,13 +30,11 @@ impl SagittariusRuntimeFunctionServiceClient {
3030 pub async fn update_runtime_function_definitions (
3131 & mut self ,
3232 runtime_functions : Vec < RuntimeFunctionDefinition > ,
33- ) {
33+ ) {
3434 let request = Request :: from_parts (
3535 get_authorization_metadata ( & self . token ) ,
3636 Extensions :: new ( ) ,
37- SagittariusRuntimeFunctionUpdateRequest {
38- runtime_functions,
39- } ,
37+ SagittariusRuntimeFunctionUpdateRequest { runtime_functions } ,
4038 ) ;
4139
4240 match self . client . update ( request) . await {
@@ -51,4 +49,4 @@ impl SagittariusRuntimeFunctionServiceClient {
5149 }
5250 } ;
5351 }
54- }
52+ }
You can’t perform that action at this time.
0 commit comments