@@ -20,7 +20,7 @@ use crate::chain::transaction::OutPoint;
20
20
use crate :: chain:: { ChannelMonitorUpdateStatus , Listen , Watch } ;
21
21
use crate :: events:: { Event , MessageSendEvent , MessageSendEventsProvider , PaymentPurpose , ClosureReason , HTLCDestination } ;
22
22
use crate :: ln:: channelmanager:: { RAACommitmentOrder , PaymentSendFailure , PaymentId , RecipientOnionFields } ;
23
- use crate :: ln:: channel:: { AnnouncementSigsState , ChannelPhase } ;
23
+ use crate :: ln:: channel:: AnnouncementSigsState ;
24
24
use crate :: ln:: msgs;
25
25
use crate :: ln:: types:: ChannelId ;
26
26
use crate :: ln:: msgs:: { ChannelMessageHandler , RoutingMessageHandler } ;
@@ -98,7 +98,7 @@ fn test_monitor_and_persister_update_fail() {
98
98
{
99
99
let mut node_0_per_peer_lock;
100
100
let mut node_0_peer_state_lock;
101
- if let ChannelPhase :: Funded ( ref mut channel) = get_channel_ref ! ( nodes[ 0 ] , nodes[ 1 ] , node_0_per_peer_lock, node_0_peer_state_lock, chan. 2 ) {
101
+ if let Some ( channel) = get_channel_ref ! ( nodes[ 0 ] , nodes[ 1 ] , node_0_per_peer_lock, node_0_peer_state_lock, chan. 2 ) . as_funded_mut ( ) {
102
102
if let Ok ( Some ( update) ) = channel. commitment_signed ( & updates. commitment_signed , & node_cfgs[ 0 ] . logger ) {
103
103
// Check that the persister returns InProgress (and will never actually complete)
104
104
// as the monitor update errors.
0 commit comments