mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-21 04:28:13 -04:00
Remove useless enum
This commit is contained in:
parent
fd23884d74
commit
0e8c5ea918
1 changed files with 2 additions and 4 deletions
|
@ -190,7 +190,7 @@ where
|
||||||
&mut self,
|
&mut self,
|
||||||
_cx: &mut Context<'_>,
|
_cx: &mut Context<'_>,
|
||||||
_params: &mut impl PollParameters,
|
_params: &mut impl PollParameters,
|
||||||
) -> Poll<NetworkBehaviourAction<HandlerInEvent, Self::OutEvent>> {
|
) -> Poll<NetworkBehaviourAction<(), Self::OutEvent>> {
|
||||||
if let Some(event) = self.events.pop_front() {
|
if let Some(event) = self.events.pop_front() {
|
||||||
return Poll::Ready(NetworkBehaviourAction::GenerateEvent(event));
|
return Poll::Ready(NetworkBehaviourAction::GenerateEvent(event));
|
||||||
}
|
}
|
||||||
|
@ -250,13 +250,11 @@ pub enum HandlerOutEvent {
|
||||||
Completed(anyhow::Result<(Uuid, alice::State3), Error>),
|
Completed(anyhow::Result<(Uuid, alice::State3), Error>),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub enum HandlerInEvent {}
|
|
||||||
|
|
||||||
impl<LR> ProtocolsHandler for Handler<LR>
|
impl<LR> ProtocolsHandler for Handler<LR>
|
||||||
where
|
where
|
||||||
LR: LatestRate + Send + 'static,
|
LR: LatestRate + Send + 'static,
|
||||||
{
|
{
|
||||||
type InEvent = HandlerInEvent;
|
type InEvent = ();
|
||||||
type OutEvent = HandlerOutEvent;
|
type OutEvent = HandlerOutEvent;
|
||||||
type Error = Error;
|
type Error = Error;
|
||||||
type InboundProtocol = protocol::SwapSetup;
|
type InboundProtocol = protocol::SwapSetup;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue