@@ -4066,7 +4066,7 @@ where
4066
4066
let per_peer_state = self.per_peer_state.read().unwrap();
4067
4067
4068
4068
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
4069
- .ok_or_else(|| APIError::ChannelUnavailable { err: format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ) })?;
4069
+ .ok_or_else(|| APIError::ChannelUnavailable { err: format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ) })?;
4070
4070
4071
4071
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
4072
4072
let peer_state = &mut *peer_state_lock;
@@ -4464,7 +4464,7 @@ where
4464
4464
let per_peer_state = self.per_peer_state.read().unwrap();
4465
4465
4466
4466
let peer_state_mutex = match per_peer_state.get(counterparty_node_id)
4467
- .ok_or_else(|| APIError::ChannelUnavailable { err: format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ) }) {
4467
+ .ok_or_else(|| APIError::ChannelUnavailable { err: format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ) }) {
4468
4468
Ok(p) => p,
4469
4469
Err(e) => return Err(e),
4470
4470
};
@@ -5570,7 +5570,7 @@ where
5570
5570
) -> Result<(), APIError> {
5571
5571
let per_peer_state = self.per_peer_state.read().unwrap();
5572
5572
let peer_state_mutex = per_peer_state.get(&counterparty_node_id)
5573
- .ok_or_else(|| APIError::ChannelUnavailable { err: format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ) })?;
5573
+ .ok_or_else(|| APIError::ChannelUnavailable { err: format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ) })?;
5574
5574
5575
5575
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
5576
5576
let peer_state = &mut *peer_state_lock;
@@ -5928,7 +5928,7 @@ where
5928
5928
let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(self);
5929
5929
let per_peer_state = self.per_peer_state.read().unwrap();
5930
5930
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
5931
- .ok_or_else(|| APIError::ChannelUnavailable { err: format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ) })?;
5931
+ .ok_or_else(|| APIError::ChannelUnavailable { err: format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ) })?;
5932
5932
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
5933
5933
let peer_state = &mut *peer_state_lock;
5934
5934
@@ -9010,7 +9010,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9010
9010
let per_peer_state = self.per_peer_state.read().unwrap();
9011
9011
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
9012
9012
.ok_or_else(|| {
9013
- let err_str = format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id );
9013
+ let err_str = format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" );
9014
9014
log_error!(logger, "{}", err_str);
9015
9015
9016
9016
APIError::ChannelUnavailable { err: err_str }
@@ -9236,7 +9236,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9236
9236
.ok_or_else(|| {
9237
9237
debug_assert!(false);
9238
9238
MsgHandleErrInternal::send_err_msg_no_close(
9239
- format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ),
9239
+ format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ),
9240
9240
common_fields.temporary_channel_id)
9241
9241
})?;
9242
9242
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -9364,7 +9364,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9364
9364
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
9365
9365
.ok_or_else(|| {
9366
9366
debug_assert!(false);
9367
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.common_fields.temporary_channel_id)
9367
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.common_fields.temporary_channel_id)
9368
9368
})?;
9369
9369
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
9370
9370
let peer_state = &mut *peer_state_lock;
@@ -9402,7 +9402,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9402
9402
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
9403
9403
.ok_or_else(|| {
9404
9404
debug_assert!(false);
9405
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.temporary_channel_id)
9405
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.temporary_channel_id)
9406
9406
})?;
9407
9407
9408
9408
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -9520,7 +9520,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9520
9520
let peer_state_mutex = per_peer_state.get(&counterparty_node_id)
9521
9521
.ok_or_else(|| {
9522
9522
debug_assert!(false);
9523
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), ChannelId([0; 32]))
9523
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), ChannelId([0; 32]))
9524
9524
})?;
9525
9525
9526
9526
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -9557,7 +9557,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9557
9557
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
9558
9558
.ok_or_else(|| {
9559
9559
debug_assert!(false);
9560
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
9560
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
9561
9561
})?;
9562
9562
9563
9563
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -9601,7 +9601,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9601
9601
.ok_or_else(|| {
9602
9602
debug_assert!(false);
9603
9603
MsgHandleErrInternal::send_err_msg_no_close(
9604
- format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ),
9604
+ format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ),
9605
9605
channel_id)
9606
9606
})?;
9607
9607
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -9695,7 +9695,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9695
9695
.ok_or_else(|| {
9696
9696
debug_assert!(false);
9697
9697
MsgHandleErrInternal::send_err_msg_no_close(
9698
- format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ),
9698
+ format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ),
9699
9699
msg.channel_id)
9700
9700
})?;
9701
9701
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -9753,7 +9753,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9753
9753
.ok_or_else(|| {
9754
9754
debug_assert!(false);
9755
9755
MsgHandleErrInternal::send_err_msg_no_close(
9756
- format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ),
9756
+ format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ),
9757
9757
msg.channel_id)
9758
9758
})?;
9759
9759
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -9801,7 +9801,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9801
9801
.ok_or_else(|| {
9802
9802
debug_assert!(false);
9803
9803
MsgHandleErrInternal::send_err_msg_no_close(
9804
- format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ),
9804
+ format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ),
9805
9805
msg.channel_id)
9806
9806
})?;
9807
9807
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
@@ -9864,7 +9864,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
9864
9864
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
9865
9865
.ok_or_else(|| {
9866
9866
debug_assert!(false);
9867
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
9867
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
9868
9868
})?;
9869
9869
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
9870
9870
let peer_state = &mut *peer_state_lock;
@@ -10098,7 +10098,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10098
10098
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
10099
10099
.ok_or_else(|| {
10100
10100
debug_assert!(false);
10101
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
10101
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
10102
10102
})?;
10103
10103
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
10104
10104
let peer_state = &mut *peer_state_lock;
@@ -10191,7 +10191,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10191
10191
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
10192
10192
.ok_or_else(|| {
10193
10193
debug_assert!(false);
10194
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
10194
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
10195
10195
})?;
10196
10196
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
10197
10197
let peer_state = &mut *peer_state_lock;
@@ -10217,7 +10217,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10217
10217
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
10218
10218
.ok_or_else(|| {
10219
10219
debug_assert!(false);
10220
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
10220
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
10221
10221
})?;
10222
10222
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
10223
10223
let peer_state = &mut *peer_state_lock;
@@ -10246,7 +10246,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10246
10246
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
10247
10247
.ok_or_else(|| {
10248
10248
debug_assert!(false);
10249
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
10249
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
10250
10250
})?;
10251
10251
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
10252
10252
let peer_state = &mut *peer_state_lock;
@@ -10290,7 +10290,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10290
10290
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
10291
10291
.ok_or_else(|| {
10292
10292
debug_assert!(false);
10293
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), channel_id)
10293
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), channel_id)
10294
10294
})?;
10295
10295
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
10296
10296
let peer_state = &mut *peer_state_lock;
@@ -10535,7 +10535,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10535
10535
let mut peer_state_lock = per_peer_state.get(counterparty_node_id)
10536
10536
.ok_or_else(|| {
10537
10537
debug_assert!(false);
10538
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
10538
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
10539
10539
}).map(|mtx| mtx.lock().unwrap())?;
10540
10540
let peer_state = &mut *peer_state_lock;
10541
10541
match peer_state.channel_by_id.entry(msg.channel_id) {
@@ -10575,7 +10575,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10575
10575
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
10576
10576
.ok_or_else(|| {
10577
10577
debug_assert!(false);
10578
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
10578
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
10579
10579
})?;
10580
10580
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
10581
10581
let peer_state = &mut *peer_state_lock;
@@ -10600,7 +10600,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10600
10600
let peer_state_mutex = per_peer_state.get(counterparty_node_id).ok_or_else(|| {
10601
10601
debug_assert!(false);
10602
10602
MsgHandleErrInternal::send_err_msg_no_close(
10603
- format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ),
10603
+ format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ),
10604
10604
msg.channel_id
10605
10605
)
10606
10606
})?;
@@ -10653,7 +10653,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10653
10653
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
10654
10654
.ok_or_else(|| {
10655
10655
debug_assert!(false);
10656
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
10656
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
10657
10657
})?;
10658
10658
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
10659
10659
let peer_state = &mut *peer_state_lock;
@@ -10745,7 +10745,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10745
10745
.ok_or_else(|| {
10746
10746
debug_assert!(false);
10747
10747
MsgHandleErrInternal::send_err_msg_no_close(
10748
- format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ),
10748
+ format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ),
10749
10749
msg.channel_id
10750
10750
)
10751
10751
})?;
@@ -10845,7 +10845,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10845
10845
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
10846
10846
.ok_or_else(|| {
10847
10847
debug_assert!(false);
10848
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
10848
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
10849
10849
})?;
10850
10850
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
10851
10851
let peer_state = &mut *peer_state_lock;
@@ -10885,7 +10885,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
10885
10885
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
10886
10886
.ok_or_else(|| {
10887
10887
debug_assert!(false);
10888
- MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id ), msg.channel_id)
10888
+ MsgHandleErrInternal::send_err_msg_no_close(format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" ), msg.channel_id)
10889
10889
})?;
10890
10890
let mut peer_state_lock = peer_state_mutex.lock().unwrap();
10891
10891
let peer_state = &mut *peer_state_lock;
@@ -11413,7 +11413,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
11413
11413
let peer_state_mutex_opt = per_peer_state.get(counterparty_node_id);
11414
11414
if peer_state_mutex_opt.is_none() {
11415
11415
result = Err(APIError::ChannelUnavailable {
11416
- err: format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id )
11416
+ err: format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" )
11417
11417
});
11418
11418
return notify;
11419
11419
}
@@ -11467,7 +11467,7 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
11467
11467
let per_peer_state = self.per_peer_state.read().unwrap();
11468
11468
let peer_state_mutex = per_peer_state.get(counterparty_node_id)
11469
11469
.ok_or_else(|| APIError::ChannelUnavailable {
11470
- err: format!("Can't find a peer matching the passed counterparty node_id {}", counterparty_node_id )
11470
+ err: format!("Can't find a peer matching the passed counterparty node_id {counterparty_node_id}" )
11471
11471
})?;
11472
11472
let mut peer_state = peer_state_mutex.lock().unwrap();
11473
11473
let initiator = match peer_state.channel_by_id.entry(*channel_id) {
0 commit comments