File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -372,12 +372,12 @@ where C::Target: chain::Filter,
372
372
return Err ( ChannelMonitorUpdateErr :: PermanentFailure ) } ,
373
373
hash_map:: Entry :: Vacant ( e) => e,
374
374
} ;
375
- let update_res = self . persister . persist_new_channel ( funding_outpoint, & monitor) ;
376
- if update_res . is_err ( ) {
377
- log_error ! ( self . logger, "Failed to persist new channel data: {:?}" , update_res ) ;
375
+ let persist_res = self . persister . persist_new_channel ( funding_outpoint, & monitor) ;
376
+ if persist_res . is_err ( ) {
377
+ log_error ! ( self . logger, "Failed to persist new channel data: {:?}" , persist_res ) ;
378
378
}
379
- if update_res == Err ( ChannelMonitorUpdateErr :: PermanentFailure ) {
380
- return update_res ;
379
+ if persist_res == Err ( ChannelMonitorUpdateErr :: PermanentFailure ) {
380
+ return persist_res ;
381
381
}
382
382
{
383
383
let funding_txo = monitor. get_funding_txo ( ) ;
@@ -388,7 +388,7 @@ where C::Target: chain::Filter,
388
388
}
389
389
}
390
390
entry. insert ( MonitorHolder { monitor } ) ;
391
- update_res
391
+ persist_res
392
392
}
393
393
394
394
/// Note that we persist the given `ChannelMonitor` update while holding the
You can’t perform that action at this time.
0 commit comments