5
5
// http://opensource.org/licenses/MIT>, at your option. You may not use this file except in
6
6
// accordance with one or both of these licenses.
7
7
8
- use crate :: types:: { CustomTlvRecord , DynStore , Sweeper , Wallet } ;
8
+ use crate :: types:: { CustomTlvRecord , DynStore , PaymentStore , Sweeper , Wallet } ;
9
9
10
10
use crate :: {
11
11
hex_utils, BumpTransactionEventHandler , ChannelManager , Error , Graph , PeerInfo , PeerStore ,
@@ -14,13 +14,13 @@ use crate::{
14
14
15
15
use crate :: config:: { may_announce_channel, Config } ;
16
16
use crate :: connection:: ConnectionManager ;
17
+ use crate :: data_store:: DataStoreUpdateResult ;
17
18
use crate :: fee_estimator:: ConfirmationTarget ;
18
19
use crate :: liquidity:: LiquiditySource ;
19
20
use crate :: logger:: Logger ;
20
21
21
22
use crate :: payment:: store:: {
22
23
PaymentDetails , PaymentDetailsUpdate , PaymentDirection , PaymentKind , PaymentStatus ,
23
- PaymentStore , PaymentStoreUpdateResult ,
24
24
} ;
25
25
26
26
use crate :: io:: {
@@ -449,7 +449,7 @@ where
449
449
output_sweeper : Arc < Sweeper > ,
450
450
network_graph : Arc < Graph > ,
451
451
liquidity_source : Option < Arc < LiquiditySource < Arc < Logger > > > > ,
452
- payment_store : Arc < PaymentStore < L > > ,
452
+ payment_store : Arc < PaymentStore > ,
453
453
peer_store : Arc < PeerStore < L > > ,
454
454
runtime : Arc < RwLock < Option < Arc < tokio:: runtime:: Runtime > > > > ,
455
455
logger : L ,
@@ -466,7 +466,7 @@ where
466
466
channel_manager : Arc < ChannelManager > , connection_manager : Arc < ConnectionManager < L > > ,
467
467
output_sweeper : Arc < Sweeper > , network_graph : Arc < Graph > ,
468
468
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 > > ,
470
470
runtime : Arc < RwLock < Option < Arc < tokio:: runtime:: Runtime > > > > , logger : L , config : Arc < Config > ,
471
471
) -> Self {
472
472
Self {
@@ -906,12 +906,11 @@ where
906
906
} ;
907
907
908
908
match self . payment_store . update ( & update) {
909
- Ok ( PaymentStoreUpdateResult :: Updated )
910
- | Ok ( PaymentStoreUpdateResult :: Unchanged ) => (
909
+ Ok ( DataStoreUpdateResult :: Updated ) | Ok ( DataStoreUpdateResult :: Unchanged ) => (
911
910
// No need to do anything if the idempotent update was applied, which might
912
911
// be the result of a replayed event.
913
912
) ,
914
- Ok ( PaymentStoreUpdateResult :: NotFound ) => {
913
+ Ok ( DataStoreUpdateResult :: NotFound ) => {
915
914
log_error ! (
916
915
self . logger,
917
916
"Claimed payment with ID {} couldn't be found in store" ,
0 commit comments