@@ -25,7 +25,7 @@ use lightning_liquidity::lsps1::msgs::{ChannelInfo, LSPS1Options, OrderId, Order
2525use lightning_liquidity:: lsps2:: client:: LSPS2ClientConfig as LdkLSPS2ClientConfig ;
2626use lightning_liquidity:: lsps2:: event:: LSPS2ClientEvent ;
2727use lightning_liquidity:: lsps2:: msgs:: OpeningFeeParams ;
28- use lightning_liquidity:: lsps2:: service:: LSPS2ServiceConfig ;
28+ use lightning_liquidity:: lsps2:: service:: LSPS2ServiceConfig as LdkLSPS2ServiceConfig ;
2929use lightning_liquidity:: lsps2:: utils:: compute_opening_fee;
3030use lightning_liquidity:: { LiquidityClientConfig , LiquidityServiceConfig } ;
3131
@@ -78,7 +78,7 @@ pub(crate) struct LSPS2ClientConfig {
7878
7979struct LSPS2Service {
8080 token : Option < String > ,
81- service_config : LSPS2ServiceConfig ,
81+ ldk_service_config : LdkLSPS2ServiceConfig ,
8282 advertise_service : bool ,
8383}
8484
@@ -159,14 +159,14 @@ where
159159 pub ( crate ) fn lsps2_service (
160160 & mut self , promise_secret : [ u8 ; 32 ] , token : Option < String > , advertise_service : bool ,
161161 ) -> & mut Self {
162- let service_config = LSPS2ServiceConfig { promise_secret } ;
163- self . lsps2_service = Some ( LSPS2Service { token, service_config , advertise_service } ) ;
162+ let ldk_service_config = LdkLSPS2ServiceConfig { promise_secret } ;
163+ self . lsps2_service = Some ( LSPS2Service { token, ldk_service_config , advertise_service } ) ;
164164 self
165165 }
166166
167167 pub ( crate ) fn build ( self ) -> LiquiditySource < L > {
168168 let liquidity_service_config = self . lsps2_service . as_ref ( ) . map ( |s| {
169- let lsps2_service_config = Some ( s. service_config . clone ( ) ) ;
169+ let lsps2_service_config = Some ( s. ldk_service_config . clone ( ) ) ;
170170 let advertise_service = s. advertise_service ;
171171 LiquidityServiceConfig { lsps2_service_config, advertise_service }
172172 } ) ;
0 commit comments