@@ -94,30 +94,28 @@ pub(crate) fn do_read_write_remove_list_persist<K: KVStoreSync + RefUnwindSafe>(
9494pub ( crate ) fn create_persister < ' a , K : KVStoreSync + Sync > (
9595 store : & ' a K , chanmon_cfg : & ' a TestChanMonCfg , max_pending_updates : u64 ,
9696) -> TestMonitorUpdatePersister < ' a , K > {
97- let persister : TestMonitorUpdatePersister < ' a , K > = MonitorUpdatingPersister :: new (
97+ MonitorUpdatingPersister :: new (
9898 store,
9999 & chanmon_cfg. logger ,
100100 max_pending_updates,
101101 & chanmon_cfg. keys_manager ,
102102 & chanmon_cfg. keys_manager ,
103103 & chanmon_cfg. tx_broadcaster ,
104104 & chanmon_cfg. fee_estimator ,
105- ) ;
106- return persister;
105+ )
107106}
108107
109108pub ( crate ) fn create_chain_monitor < ' a , K : KVStoreSync + Sync > (
110109 chanmon_cfg : & ' a TestChanMonCfg , persister : & ' a TestMonitorUpdatePersister < ' a , K > ,
111110) -> test_utils:: TestChainMonitor < ' a > {
112- let chain_mon = test_utils:: TestChainMonitor :: new (
111+ test_utils:: TestChainMonitor :: new (
113112 Some ( & chanmon_cfg. chain_source ) ,
114113 & chanmon_cfg. tx_broadcaster ,
115114 & chanmon_cfg. logger ,
116115 & chanmon_cfg. fee_estimator ,
117116 persister,
118117 & chanmon_cfg. keys_manager ,
119- ) ;
120- return chain_mon;
118+ )
121119}
122120
123121// Integration-test the given KVStore implementation. Test relaying a few payments and check that
0 commit comments