mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-27 07:47:08 -05:00
Remove unneeded pub qualifiers
This commit is contained in:
parent
9ba89194b0
commit
51cc44484b
@ -30,15 +30,15 @@ impl<T> Default for Channels<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct EventLoopHandle {
|
pub struct EventLoopHandle {
|
||||||
pub msg0: Receiver<bob::Message0>,
|
msg0: Receiver<bob::Message0>,
|
||||||
pub msg1: Receiver<(bob::Message1, ResponseChannel<AliceToBob>)>,
|
msg1: Receiver<(bob::Message1, ResponseChannel<AliceToBob>)>,
|
||||||
pub msg2: Receiver<(bob::Message2, ResponseChannel<AliceToBob>)>,
|
msg2: Receiver<(bob::Message2, ResponseChannel<AliceToBob>)>,
|
||||||
pub msg3: Receiver<bob::Message3>,
|
msg3: Receiver<bob::Message3>,
|
||||||
pub request: Receiver<crate::alice::amounts::OutEvent>,
|
request: Receiver<crate::alice::amounts::OutEvent>,
|
||||||
pub conn_established: Receiver<PeerId>,
|
conn_established: Receiver<PeerId>,
|
||||||
pub send_amounts: Sender<(ResponseChannel<AliceToBob>, SwapAmounts)>,
|
send_amounts: Sender<(ResponseChannel<AliceToBob>, SwapAmounts)>,
|
||||||
pub send_msg1: Sender<(ResponseChannel<AliceToBob>, alice::Message1)>,
|
send_msg1: Sender<(ResponseChannel<AliceToBob>, alice::Message1)>,
|
||||||
pub send_msg2: Sender<(ResponseChannel<AliceToBob>, alice::Message2)>,
|
send_msg2: Sender<(ResponseChannel<AliceToBob>, alice::Message2)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EventLoopHandle {
|
impl EventLoopHandle {
|
||||||
@ -112,16 +112,16 @@ impl EventLoopHandle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct EventLoop {
|
pub struct EventLoop {
|
||||||
pub swarm: libp2p::Swarm<Behaviour>,
|
swarm: libp2p::Swarm<Behaviour>,
|
||||||
pub msg0: Sender<bob::Message0>,
|
msg0: Sender<bob::Message0>,
|
||||||
pub msg1: Sender<(bob::Message1, ResponseChannel<AliceToBob>)>,
|
msg1: Sender<(bob::Message1, ResponseChannel<AliceToBob>)>,
|
||||||
pub msg2: Sender<(bob::Message2, ResponseChannel<AliceToBob>)>,
|
msg2: Sender<(bob::Message2, ResponseChannel<AliceToBob>)>,
|
||||||
pub msg3: Sender<bob::Message3>,
|
msg3: Sender<bob::Message3>,
|
||||||
pub request: Sender<crate::alice::amounts::OutEvent>,
|
request: Sender<crate::alice::amounts::OutEvent>,
|
||||||
pub conn_established: Sender<PeerId>,
|
conn_established: Sender<PeerId>,
|
||||||
pub send_amounts: Receiver<(ResponseChannel<AliceToBob>, SwapAmounts)>,
|
send_amounts: Receiver<(ResponseChannel<AliceToBob>, SwapAmounts)>,
|
||||||
pub send_msg1: Receiver<(ResponseChannel<AliceToBob>, alice::Message1)>,
|
send_msg1: Receiver<(ResponseChannel<AliceToBob>, alice::Message1)>,
|
||||||
pub send_msg2: Receiver<(ResponseChannel<AliceToBob>, alice::Message2)>,
|
send_msg2: Receiver<(ResponseChannel<AliceToBob>, alice::Message2)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EventLoop {
|
impl EventLoop {
|
||||||
|
@ -31,16 +31,16 @@ impl<T> Default for Channels<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct EventLoopHandle {
|
pub struct EventLoopHandle {
|
||||||
pub msg0: Receiver<alice::Message0>,
|
msg0: Receiver<alice::Message0>,
|
||||||
pub msg1: Receiver<alice::Message1>,
|
msg1: Receiver<alice::Message1>,
|
||||||
pub msg2: Receiver<alice::Message2>,
|
msg2: Receiver<alice::Message2>,
|
||||||
pub request_amounts: Sender<(PeerId, ::bitcoin::Amount)>,
|
request_amounts: Sender<(PeerId, ::bitcoin::Amount)>,
|
||||||
pub conn_established: Receiver<PeerId>,
|
conn_established: Receiver<PeerId>,
|
||||||
pub dial_alice: Sender<Multiaddr>,
|
dial_alice: Sender<Multiaddr>,
|
||||||
pub send_msg0: Sender<(PeerId, bob::Message0)>,
|
send_msg0: Sender<(PeerId, bob::Message0)>,
|
||||||
pub send_msg1: Sender<(PeerId, bob::Message1)>,
|
send_msg1: Sender<(PeerId, bob::Message1)>,
|
||||||
pub send_msg2: Sender<(PeerId, bob::Message2)>,
|
send_msg2: Sender<(PeerId, bob::Message2)>,
|
||||||
pub send_msg3: Sender<(PeerId, EncryptedSignature)>,
|
send_msg3: Sender<(PeerId, EncryptedSignature)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EventLoopHandle {
|
impl EventLoopHandle {
|
||||||
@ -113,17 +113,17 @@ impl EventLoopHandle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub struct EventLoop {
|
pub struct EventLoop {
|
||||||
pub swarm: libp2p::Swarm<Behaviour>,
|
swarm: libp2p::Swarm<Behaviour>,
|
||||||
pub msg0: Sender<alice::Message0>,
|
msg0: Sender<alice::Message0>,
|
||||||
pub msg1: Sender<alice::Message1>,
|
msg1: Sender<alice::Message1>,
|
||||||
pub msg2: Sender<alice::Message2>,
|
msg2: Sender<alice::Message2>,
|
||||||
pub conn_established: Sender<PeerId>,
|
conn_established: Sender<PeerId>,
|
||||||
pub request_amounts: Receiver<(PeerId, ::bitcoin::Amount)>,
|
request_amounts: Receiver<(PeerId, ::bitcoin::Amount)>,
|
||||||
pub dial_alice: Receiver<Multiaddr>,
|
dial_alice: Receiver<Multiaddr>,
|
||||||
pub send_msg0: Receiver<(PeerId, bob::Message0)>,
|
send_msg0: Receiver<(PeerId, bob::Message0)>,
|
||||||
pub send_msg1: Receiver<(PeerId, bob::Message1)>,
|
send_msg1: Receiver<(PeerId, bob::Message1)>,
|
||||||
pub send_msg2: Receiver<(PeerId, bob::Message2)>,
|
send_msg2: Receiver<(PeerId, bob::Message2)>,
|
||||||
pub send_msg3: Receiver<(PeerId, EncryptedSignature)>,
|
send_msg3: Receiver<(PeerId, EncryptedSignature)>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EventLoop {
|
impl EventLoop {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user