11use lightning:: chain;
2- use lightning:: chain:: { chainmonitor, channelmonitor} ;
32use lightning:: chain:: transaction:: OutPoint ;
3+ use lightning:: chain:: { chainmonitor, channelmonitor} ;
44use lightning:: util:: test_channel_signer:: TestChannelSigner ;
55
66use std:: sync:: Mutex ;
@@ -9,14 +9,18 @@ pub struct TestPersister {
99 pub update_ret : Mutex < chain:: ChannelMonitorUpdateStatus > ,
1010}
1111impl chainmonitor:: Persist < TestChannelSigner > for TestPersister {
12- fn persist_new_channel ( & self , _funding_txo : OutPoint , _data : & channelmonitor:: ChannelMonitor < TestChannelSigner > ) -> chain:: ChannelMonitorUpdateStatus {
12+ fn persist_new_channel (
13+ & self , _funding_txo : OutPoint , _data : & channelmonitor:: ChannelMonitor < TestChannelSigner > ,
14+ ) -> chain:: ChannelMonitorUpdateStatus {
1315 self . update_ret . lock ( ) . unwrap ( ) . clone ( )
1416 }
1517
16- fn update_persisted_channel ( & self , _funding_txo : OutPoint , _update : Option < & channelmonitor:: ChannelMonitorUpdate > , _data : & channelmonitor:: ChannelMonitor < TestChannelSigner > ) -> chain:: ChannelMonitorUpdateStatus {
18+ fn update_persisted_channel (
19+ & self , _funding_txo : OutPoint , _update : Option < & channelmonitor:: ChannelMonitorUpdate > ,
20+ _data : & channelmonitor:: ChannelMonitor < TestChannelSigner > ,
21+ ) -> chain:: ChannelMonitorUpdateStatus {
1722 self . update_ret . lock ( ) . unwrap ( ) . clone ( )
1823 }
1924
20- fn archive_persisted_channel ( & self , _: OutPoint ) {
21- }
25+ fn archive_persisted_channel ( & self , _: OutPoint ) { }
2226}
0 commit comments