mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-20 20:18:18 -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,
|
||||
_cx: &mut Context<'_>,
|
||||
_params: &mut impl PollParameters,
|
||||
) -> Poll<NetworkBehaviourAction<HandlerInEvent, Self::OutEvent>> {
|
||||
) -> Poll<NetworkBehaviourAction<(), Self::OutEvent>> {
|
||||
if let Some(event) = self.events.pop_front() {
|
||||
return Poll::Ready(NetworkBehaviourAction::GenerateEvent(event));
|
||||
}
|
||||
|
@ -250,13 +250,11 @@ pub enum HandlerOutEvent {
|
|||
Completed(anyhow::Result<(Uuid, alice::State3), Error>),
|
||||
}
|
||||
|
||||
pub enum HandlerInEvent {}
|
||||
|
||||
impl<LR> ProtocolsHandler for Handler<LR>
|
||||
where
|
||||
LR: LatestRate + Send + 'static,
|
||||
{
|
||||
type InEvent = HandlerInEvent;
|
||||
type InEvent = ();
|
||||
type OutEvent = HandlerOutEvent;
|
||||
type Error = Error;
|
||||
type InboundProtocol = protocol::SwapSetup;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue