File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -799,7 +799,6 @@ pub fn map_infra_to_runtime(infra: InfraConfig) -> RuntimeConfig {
799
799
) ) ,
800
800
} )
801
801
. collect ( ) ;
802
-
803
802
let subscriptions = gcp
804
803
. topics
805
804
. iter ( )
@@ -812,22 +811,24 @@ pub fn map_infra_to_runtime(infra: InfraConfig) -> RuntimeConfig {
812
811
topic_cloud_name : topic. name . clone ( ) ,
813
812
subscription_cloud_name : sub. name . clone ( ) ,
814
813
push_only : sub. push_config . is_some ( ) ,
815
- provider_config : sub . push_config . as_ref ( ) . map ( |pc| {
814
+ provider_config : Some (
816
815
pub_sub_subscription:: ProviderConfig :: GcpConfig (
817
816
pub_sub_subscription:: GcpConfig {
818
817
project_id : sub
819
818
. project_id
820
819
. clone ( )
821
820
. unwrap_or_else ( || gcp. project_id . clone ( ) ) ,
822
- push_service_account : Some (
823
- pc. service_account . clone ( ) ,
824
- ) ,
825
- push_jwt_audience : Some (
826
- pc. jwt_audience . clone ( ) ,
827
- ) ,
821
+ push_service_account : sub
822
+ . push_config
823
+ . as_ref ( )
824
+ . map ( |pc| pc. service_account . clone ( ) ) ,
825
+ push_jwt_audience : sub
826
+ . push_config
827
+ . as_ref ( )
828
+ . map ( |pc| pc. jwt_audience . clone ( ) ) ,
828
829
} ,
829
- )
830
- } ) ,
830
+ ) ,
831
+ ) ,
831
832
}
832
833
} )
833
834
} )
You can’t perform that action at this time.
0 commit comments