@@ -200,7 +200,7 @@ pub trait ALiquidityManagerSync {
200200 Self :: NS ,
201201 Self :: CM ,
202202 Self :: C ,
203- Arc < KVStoreSyncWrapper < Self :: KS > > ,
203+ KVStoreSyncWrapper < Self :: KS > ,
204204 Self :: TP ,
205205 > ;
206206 /// Returns a reference to the actual [`LiquidityManager`] object.
@@ -246,7 +246,7 @@ where
246246 Self :: NS ,
247247 Self :: CM ,
248248 Self :: C ,
249- Arc < KVStoreSyncWrapper < Self :: KS > > ,
249+ KVStoreSyncWrapper < Self :: KS > ,
250250 Self :: TP ,
251251 > {
252252 & self . inner
@@ -1036,7 +1036,7 @@ pub struct LiquidityManagerSync<
10361036 KS :: Target : KVStoreSync ,
10371037 TP :: Target : TimeProvider ,
10381038{
1039- inner : LiquidityManager < ES , NS , CM , C , Arc < KVStoreSyncWrapper < KS > > , TP > ,
1039+ inner : LiquidityManager < ES , NS , CM , C , KVStoreSyncWrapper < KS > , TP > ,
10401040}
10411041
10421042#[ cfg( feature = "time" ) ]
@@ -1063,7 +1063,7 @@ where
10631063 service_config : Option < LiquidityServiceConfig > ,
10641064 client_config : Option < LiquidityClientConfig > ,
10651065 ) -> Result < Self , lightning:: io:: Error > {
1066- let kv_store = Arc :: new ( KVStoreSyncWrapper ( kv_store_sync) ) ;
1066+ let kv_store = KVStoreSyncWrapper ( kv_store_sync) ;
10671067
10681068 let mut fut = Box :: pin ( LiquidityManager :: new (
10691069 entropy_source,
@@ -1114,7 +1114,7 @@ where
11141114 service_config : Option < LiquidityServiceConfig > ,
11151115 client_config : Option < LiquidityClientConfig > , time_provider : TP ,
11161116 ) -> Result < Self , lightning:: io:: Error > {
1117- let kv_store = Arc :: new ( KVStoreSyncWrapper ( kv_store_sync) ) ;
1117+ let kv_store = KVStoreSyncWrapper ( kv_store_sync) ;
11181118 let mut fut = Box :: pin ( LiquidityManager :: new_with_custom_time_provider (
11191119 entropy_source,
11201120 node_signer,
@@ -1142,7 +1142,7 @@ where
11421142 /// Returns a reference to the LSPS0 client-side handler.
11431143 ///
11441144 /// Wraps [`LiquidityManager::lsps0_client_handler`].
1145- pub fn lsps0_client_handler ( & self ) -> & LSPS0ClientHandler < ES , Arc < KVStoreSyncWrapper < KS > > > {
1145+ pub fn lsps0_client_handler ( & self ) -> & LSPS0ClientHandler < ES , KVStoreSyncWrapper < KS > > {
11461146 self . inner . lsps0_client_handler ( )
11471147 }
11481148
@@ -1156,9 +1156,7 @@ where
11561156 /// Returns a reference to the LSPS1 client-side handler.
11571157 ///
11581158 /// Wraps [`LiquidityManager::lsps1_client_handler`].
1159- pub fn lsps1_client_handler (
1160- & self ,
1161- ) -> Option < & LSPS1ClientHandler < ES , Arc < KVStoreSyncWrapper < KS > > > > {
1159+ pub fn lsps1_client_handler ( & self ) -> Option < & LSPS1ClientHandler < ES , KVStoreSyncWrapper < KS > > > {
11621160 self . inner . lsps1_client_handler ( )
11631161 }
11641162
@@ -1168,16 +1166,14 @@ where
11681166 #[ cfg( lsps1_service) ]
11691167 pub fn lsps1_service_handler (
11701168 & self ,
1171- ) -> Option < & LSPS1ServiceHandler < ES , CM , C , Arc < KVStoreSyncWrapper < KS > > > > {
1169+ ) -> Option < & LSPS1ServiceHandler < ES , CM , C , KVStoreSyncWrapper < KS > > > {
11721170 self . inner . lsps1_service_handler ( )
11731171 }
11741172
11751173 /// Returns a reference to the LSPS2 client-side handler.
11761174 ///
11771175 /// Wraps [`LiquidityManager::lsps2_client_handler`].
1178- pub fn lsps2_client_handler (
1179- & self ,
1180- ) -> Option < & LSPS2ClientHandler < ES , Arc < KVStoreSyncWrapper < KS > > > > {
1176+ pub fn lsps2_client_handler ( & self ) -> Option < & LSPS2ClientHandler < ES , KVStoreSyncWrapper < KS > > > {
11811177 self . inner . lsps2_client_handler ( )
11821178 }
11831179
@@ -1186,16 +1182,14 @@ where
11861182 /// Wraps [`LiquidityManager::lsps2_service_handler`].
11871183 pub fn lsps2_service_handler < ' a > (
11881184 & ' a self ,
1189- ) -> Option < LSPS2ServiceHandlerSync < ' a , CM , Arc < KVStoreSyncWrapper < KS > > > > {
1185+ ) -> Option < LSPS2ServiceHandlerSync < ' a , CM , KVStoreSyncWrapper < KS > > > {
11901186 self . inner . lsps2_service_handler . as_ref ( ) . map ( |r| LSPS2ServiceHandlerSync :: from_inner ( r) )
11911187 }
11921188
11931189 /// Returns a reference to the LSPS5 client-side handler.
11941190 ///
11951191 /// Wraps [`LiquidityManager::lsps5_client_handler`].
1196- pub fn lsps5_client_handler (
1197- & self ,
1198- ) -> Option < & LSPS5ClientHandler < ES , Arc < KVStoreSyncWrapper < KS > > > > {
1192+ pub fn lsps5_client_handler ( & self ) -> Option < & LSPS5ClientHandler < ES , KVStoreSyncWrapper < KS > > > {
11991193 self . inner . lsps5_client_handler ( )
12001194 }
12011195
@@ -1204,7 +1198,7 @@ where
12041198 /// Wraps [`LiquidityManager::lsps5_service_handler`].
12051199 pub fn lsps5_service_handler (
12061200 & self ,
1207- ) -> Option < & LSPS5ServiceHandler < CM , NS , Arc < KVStoreSyncWrapper < KS > > , TP > > {
1201+ ) -> Option < & LSPS5ServiceHandler < CM , NS , KVStoreSyncWrapper < KS > , TP > > {
12081202 self . inner . lsps5_service_handler ( )
12091203 }
12101204
0 commit comments