mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Move EventLoopHandle
next to its impl block
This struct is not that important so it can move further down.
This commit is contained in:
parent
e77f1729b4
commit
d682433ec9
@ -42,12 +42,6 @@ pub struct EventLoop<RS> {
|
|||||||
swap_sender: mpsc::Sender<Swap>,
|
swap_sender: mpsc::Sender<Swap>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
pub struct EventLoopHandle {
|
|
||||||
recv_encrypted_signature: Option<oneshot::Receiver<EncryptedSignature>>,
|
|
||||||
send_transfer_proof: Option<oneshot::Sender<TransferProof>>,
|
|
||||||
}
|
|
||||||
|
|
||||||
impl<LR> EventLoop<LR>
|
impl<LR> EventLoop<LR>
|
||||||
where
|
where
|
||||||
LR: LatestRate,
|
LR: LatestRate,
|
||||||
@ -310,6 +304,12 @@ impl LatestRate for kraken::RateUpdateStream {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
|
pub struct EventLoopHandle {
|
||||||
|
recv_encrypted_signature: Option<oneshot::Receiver<EncryptedSignature>>,
|
||||||
|
send_transfer_proof: Option<oneshot::Sender<TransferProof>>,
|
||||||
|
}
|
||||||
|
|
||||||
impl EventLoopHandle {
|
impl EventLoopHandle {
|
||||||
pub async fn recv_encrypted_signature(&mut self) -> Result<bitcoin::EncryptedSignature> {
|
pub async fn recv_encrypted_signature(&mut self) -> Result<bitcoin::EncryptedSignature> {
|
||||||
let signature = self
|
let signature = self
|
||||||
|
Loading…
Reference in New Issue
Block a user