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