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 msg0: Receiver<bob::Message0>,
|
||||
pub msg1: Receiver<(bob::Message1, ResponseChannel<AliceToBob>)>,
|
||||
pub msg2: Receiver<(bob::Message2, ResponseChannel<AliceToBob>)>,
|
||||
pub msg3: Receiver<bob::Message3>,
|
||||
pub request: Receiver<crate::alice::amounts::OutEvent>,
|
||||
pub conn_established: Receiver<PeerId>,
|
||||
pub send_amounts: Sender<(ResponseChannel<AliceToBob>, SwapAmounts)>,
|
||||
pub send_msg1: Sender<(ResponseChannel<AliceToBob>, alice::Message1)>,
|
||||
pub send_msg2: Sender<(ResponseChannel<AliceToBob>, alice::Message2)>,
|
||||
msg0: Receiver<bob::Message0>,
|
||||
msg1: Receiver<(bob::Message1, ResponseChannel<AliceToBob>)>,
|
||||
msg2: Receiver<(bob::Message2, ResponseChannel<AliceToBob>)>,
|
||||
msg3: Receiver<bob::Message3>,
|
||||
request: Receiver<crate::alice::amounts::OutEvent>,
|
||||
conn_established: Receiver<PeerId>,
|
||||
send_amounts: Sender<(ResponseChannel<AliceToBob>, SwapAmounts)>,
|
||||
send_msg1: Sender<(ResponseChannel<AliceToBob>, alice::Message1)>,
|
||||
send_msg2: Sender<(ResponseChannel<AliceToBob>, alice::Message2)>,
|
||||
}
|
||||
|
||||
impl EventLoopHandle {
|
||||
@ -112,16 +112,16 @@ impl EventLoopHandle {
|
||||
}
|
||||
|
||||
pub struct EventLoop {
|
||||
pub swarm: libp2p::Swarm<Behaviour>,
|
||||
pub msg0: Sender<bob::Message0>,
|
||||
pub msg1: Sender<(bob::Message1, ResponseChannel<AliceToBob>)>,
|
||||
pub msg2: Sender<(bob::Message2, ResponseChannel<AliceToBob>)>,
|
||||
pub msg3: Sender<bob::Message3>,
|
||||
pub request: Sender<crate::alice::amounts::OutEvent>,
|
||||
pub conn_established: Sender<PeerId>,
|
||||
pub send_amounts: Receiver<(ResponseChannel<AliceToBob>, SwapAmounts)>,
|
||||
pub send_msg1: Receiver<(ResponseChannel<AliceToBob>, alice::Message1)>,
|
||||
pub send_msg2: Receiver<(ResponseChannel<AliceToBob>, alice::Message2)>,
|
||||
swarm: libp2p::Swarm<Behaviour>,
|
||||
msg0: Sender<bob::Message0>,
|
||||
msg1: Sender<(bob::Message1, ResponseChannel<AliceToBob>)>,
|
||||
msg2: Sender<(bob::Message2, ResponseChannel<AliceToBob>)>,
|
||||
msg3: Sender<bob::Message3>,
|
||||
request: Sender<crate::alice::amounts::OutEvent>,
|
||||
conn_established: Sender<PeerId>,
|
||||
send_amounts: Receiver<(ResponseChannel<AliceToBob>, SwapAmounts)>,
|
||||
send_msg1: Receiver<(ResponseChannel<AliceToBob>, alice::Message1)>,
|
||||
send_msg2: Receiver<(ResponseChannel<AliceToBob>, alice::Message2)>,
|
||||
}
|
||||
|
||||
impl EventLoop {
|
||||
|
@ -31,16 +31,16 @@ impl<T> Default for Channels<T> {
|
||||
}
|
||||
|
||||
pub struct EventLoopHandle {
|
||||
pub msg0: Receiver<alice::Message0>,
|
||||
pub msg1: Receiver<alice::Message1>,
|
||||
pub msg2: Receiver<alice::Message2>,
|
||||
pub request_amounts: Sender<(PeerId, ::bitcoin::Amount)>,
|
||||
pub conn_established: Receiver<PeerId>,
|
||||
pub dial_alice: Sender<Multiaddr>,
|
||||
pub send_msg0: Sender<(PeerId, bob::Message0)>,
|
||||
pub send_msg1: Sender<(PeerId, bob::Message1)>,
|
||||
pub send_msg2: Sender<(PeerId, bob::Message2)>,
|
||||
pub send_msg3: Sender<(PeerId, EncryptedSignature)>,
|
||||
msg0: Receiver<alice::Message0>,
|
||||
msg1: Receiver<alice::Message1>,
|
||||
msg2: Receiver<alice::Message2>,
|
||||
request_amounts: Sender<(PeerId, ::bitcoin::Amount)>,
|
||||
conn_established: Receiver<PeerId>,
|
||||
dial_alice: Sender<Multiaddr>,
|
||||
send_msg0: Sender<(PeerId, bob::Message0)>,
|
||||
send_msg1: Sender<(PeerId, bob::Message1)>,
|
||||
send_msg2: Sender<(PeerId, bob::Message2)>,
|
||||
send_msg3: Sender<(PeerId, EncryptedSignature)>,
|
||||
}
|
||||
|
||||
impl EventLoopHandle {
|
||||
@ -113,17 +113,17 @@ impl EventLoopHandle {
|
||||
}
|
||||
|
||||
pub struct EventLoop {
|
||||
pub swarm: libp2p::Swarm<Behaviour>,
|
||||
pub msg0: Sender<alice::Message0>,
|
||||
pub msg1: Sender<alice::Message1>,
|
||||
pub msg2: Sender<alice::Message2>,
|
||||
pub conn_established: Sender<PeerId>,
|
||||
pub request_amounts: Receiver<(PeerId, ::bitcoin::Amount)>,
|
||||
pub dial_alice: Receiver<Multiaddr>,
|
||||
pub send_msg0: Receiver<(PeerId, bob::Message0)>,
|
||||
pub send_msg1: Receiver<(PeerId, bob::Message1)>,
|
||||
pub send_msg2: Receiver<(PeerId, bob::Message2)>,
|
||||
pub send_msg3: Receiver<(PeerId, EncryptedSignature)>,
|
||||
swarm: libp2p::Swarm<Behaviour>,
|
||||
msg0: Sender<alice::Message0>,
|
||||
msg1: Sender<alice::Message1>,
|
||||
msg2: Sender<alice::Message2>,
|
||||
conn_established: Sender<PeerId>,
|
||||
request_amounts: Receiver<(PeerId, ::bitcoin::Amount)>,
|
||||
dial_alice: Receiver<Multiaddr>,
|
||||
send_msg0: Receiver<(PeerId, bob::Message0)>,
|
||||
send_msg1: Receiver<(PeerId, bob::Message1)>,
|
||||
send_msg2: Receiver<(PeerId, bob::Message2)>,
|
||||
send_msg3: Receiver<(PeerId, EncryptedSignature)>,
|
||||
}
|
||||
|
||||
impl EventLoop {
|
||||
|
Loading…
x
Reference in New Issue
Block a user