55// http://opensource.org/licenses/MIT>, at your option. You may not use this file except in
66// accordance with one or both of these licenses.
77
8- use crate :: types:: { CustomTlvRecord , DynStore , Sweeper , Wallet } ;
8+ use crate :: types:: { CustomTlvRecord , DynStore , PaymentStore , Sweeper , Wallet } ;
99
1010use crate :: {
1111 hex_utils, BumpTransactionEventHandler , ChannelManager , Error , Graph , PeerInfo , PeerStore ,
@@ -14,13 +14,13 @@ use crate::{
1414
1515use crate :: config:: { may_announce_channel, Config } ;
1616use crate :: connection:: ConnectionManager ;
17+ use crate :: data_store:: DataStoreUpdateResult ;
1718use crate :: fee_estimator:: ConfirmationTarget ;
1819use crate :: liquidity:: LiquiditySource ;
1920use crate :: logger:: Logger ;
2021
2122use crate :: payment:: store:: {
2223 PaymentDetails , PaymentDetailsUpdate , PaymentDirection , PaymentKind , PaymentStatus ,
23- PaymentStore , PaymentStoreUpdateResult ,
2424} ;
2525
2626use crate :: io:: {
@@ -449,7 +449,7 @@ where
449449 output_sweeper : Arc < Sweeper > ,
450450 network_graph : Arc < Graph > ,
451451 liquidity_source : Option < Arc < LiquiditySource < Arc < Logger > > > > ,
452- payment_store : Arc < PaymentStore < L > > ,
452+ payment_store : Arc < PaymentStore > ,
453453 peer_store : Arc < PeerStore < L > > ,
454454 runtime : Arc < RwLock < Option < Arc < tokio:: runtime:: Runtime > > > > ,
455455 logger : L ,
@@ -466,7 +466,7 @@ where
466466 channel_manager : Arc < ChannelManager > , connection_manager : Arc < ConnectionManager < L > > ,
467467 output_sweeper : Arc < Sweeper > , network_graph : Arc < Graph > ,
468468 liquidity_source : Option < Arc < LiquiditySource < Arc < Logger > > > > ,
469- payment_store : Arc < PaymentStore < L > > , peer_store : Arc < PeerStore < L > > ,
469+ payment_store : Arc < PaymentStore > , peer_store : Arc < PeerStore < L > > ,
470470 runtime : Arc < RwLock < Option < Arc < tokio:: runtime:: Runtime > > > > , logger : L , config : Arc < Config > ,
471471 ) -> Self {
472472 Self {
@@ -906,12 +906,11 @@ where
906906 } ;
907907
908908 match self . payment_store . update ( & update) {
909- Ok ( PaymentStoreUpdateResult :: Updated )
910- | Ok ( PaymentStoreUpdateResult :: Unchanged ) => (
909+ Ok ( DataStoreUpdateResult :: Updated ) | Ok ( DataStoreUpdateResult :: Unchanged ) => (
911910 // No need to do anything if the idempotent update was applied, which might
912911 // be the result of a replayed event.
913912 ) ,
914- Ok ( PaymentStoreUpdateResult :: NotFound ) => {
913+ Ok ( DataStoreUpdateResult :: NotFound ) => {
915914 log_error ! (
916915 self . logger,
917916 "Claimed payment with ID {} couldn't be found in store" ,
0 commit comments