@@ -136,32 +136,30 @@ impl PeerState {
136136}
137137
138138/// The main object allowing to send and receive LSPS1 messages.
139- pub struct LSPS1ServiceHandler < ES : Deref , CM : Deref + Clone , MQ : Deref , C : Deref >
139+ pub struct LSPS1ServiceHandler < ES : Deref , CM : Deref + Clone , C : Deref >
140140where
141141 ES :: Target : EntropySource ,
142142 CM :: Target : AChannelManager ,
143- MQ :: Target : MessageQueue ,
144143 C :: Target : Filter ,
145144{
146145 entropy_source : ES ,
147146 channel_manager : CM ,
148147 chain_source : Option < C > ,
149- pending_messages : MQ ,
148+ pending_messages : Arc < MessageQueue > ,
150149 pending_events : Arc < EventQueue > ,
151150 per_peer_state : RwLock < HashMap < PublicKey , Mutex < PeerState > > > ,
152151 config : LSPS1ServiceConfig ,
153152}
154153
155- impl < ES : Deref , CM : Deref + Clone , MQ : Deref , C : Deref > LSPS1ServiceHandler < ES , CM , MQ , C >
154+ impl < ES : Deref , CM : Deref + Clone , C : Deref > LSPS1ServiceHandler < ES , CM , C >
156155where
157156 ES :: Target : EntropySource ,
158157 CM :: Target : AChannelManager ,
159- MQ :: Target : MessageQueue ,
160158 C :: Target : Filter ,
161159 ES :: Target : EntropySource ,
162160{
163161 pub ( crate ) fn new (
164- entropy_source : ES , pending_messages : MQ , pending_events : Arc < EventQueue > ,
162+ entropy_source : ES , pending_messages : Arc < MessageQueue > , pending_events : Arc < EventQueue > ,
165163 channel_manager : CM , chain_source : Option < C > , config : LSPS1ServiceConfig ,
166164 ) -> Self {
167165 Self {
@@ -422,12 +420,11 @@ where
422420 }
423421}
424422
425- impl < ES : Deref , CM : Deref + Clone , MQ : Deref , C : Deref > ProtocolMessageHandler
426- for LSPS1ServiceHandler < ES , CM , MQ , C >
423+ impl < ES : Deref , CM : Deref + Clone , C : Deref > ProtocolMessageHandler
424+ for LSPS1ServiceHandler < ES , CM , C >
427425where
428426 ES :: Target : EntropySource ,
429427 CM :: Target : AChannelManager ,
430- MQ :: Target : MessageQueue ,
431428 C :: Target : Filter ,
432429{
433430 type ProtocolMessage = LSPS1Message ;
0 commit comments