mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-22 15:49:52 -05:00
Unreachables for handler injects that Alice does not support
This commit is contained in:
parent
e18bda4f7b
commit
39e0b45da9
@ -470,20 +470,20 @@ where
|
|||||||
self.events.push_back(HandlerOutEvent::Initiated(receiver));
|
self.events.push_back(HandlerOutEvent::Initiated(receiver));
|
||||||
}
|
}
|
||||||
|
|
||||||
fn inject_fully_negotiated_outbound(&mut self, protocol: Void, info: Self::OutboundOpenInfo) {
|
fn inject_fully_negotiated_outbound(&mut self, _: Void, _: Self::OutboundOpenInfo) {
|
||||||
unreachable!("we don't support outbound")
|
unreachable!("Alice does not support outbound in the hanlder")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn inject_event(&mut self, event: Self::InEvent) {
|
fn inject_event(&mut self, _: Self::InEvent) {
|
||||||
todo!()
|
unreachable!("Alice does not receive events from the Behaviour in the handler")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn inject_dial_upgrade_error(
|
fn inject_dial_upgrade_error(
|
||||||
&mut self,
|
&mut self,
|
||||||
info: Self::OutboundOpenInfo,
|
_: Self::OutboundOpenInfo,
|
||||||
error: ProtocolsHandlerUpgrErr<Void>,
|
_: ProtocolsHandlerUpgrErr<Void>,
|
||||||
) {
|
) {
|
||||||
todo!()
|
unreachable!("Alice does not dial")
|
||||||
}
|
}
|
||||||
|
|
||||||
fn connection_keep_alive(&self) -> KeepAlive {
|
fn connection_keep_alive(&self) -> KeepAlive {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user