Skip to content

Commit f3085bb

Browse files
committed
Remove unnecessary bounds on LSPS2ServiceHandler
There's no reason to require a `clone`able `ChannelManager` reference (even though they often are).
1 parent db41005 commit f3085bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning-liquidity/src/lsps2/service.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ macro_rules! get_or_insert_peer_state_entry {
550550
}
551551

552552
/// The main object allowing to send and receive LSPS2 messages.
553-
pub struct LSPS2ServiceHandler<CM: Deref + Clone>
553+
pub struct LSPS2ServiceHandler<CM: Deref>
554554
where
555555
CM::Target: AChannelManager,
556556
{
@@ -564,7 +564,7 @@ where
564564
config: LSPS2ServiceConfig,
565565
}
566566

567-
impl<CM: Deref + Clone> LSPS2ServiceHandler<CM>
567+
impl<CM: Deref> LSPS2ServiceHandler<CM>
568568
where
569569
CM::Target: AChannelManager,
570570
{
@@ -1345,7 +1345,7 @@ where
13451345
}
13461346
}
13471347

1348-
impl<CM: Deref + Clone> ProtocolMessageHandler for LSPS2ServiceHandler<CM>
1348+
impl<CM: Deref> ProtocolMessageHandler for LSPS2ServiceHandler<CM>
13491349
where
13501350
CM::Target: AChannelManager,
13511351
{

0 commit comments

Comments
 (0)