mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 23:19:34 -05:00
Allow large enum variant lint
The docs say one needs to measure the impact of this before taking action. We didn't measure anything. Let's not take any action.
This commit is contained in:
parent
e163942850
commit
b4fafeba6b
@ -172,7 +172,7 @@ where
|
|||||||
let _ = responder.respond(wallet_snapshot);
|
let _ = responder.respond(wallet_snapshot);
|
||||||
}
|
}
|
||||||
SwarmEvent::Behaviour(OutEvent::SwapSetupCompleted{peer_id, swap_id, state3}) => {
|
SwarmEvent::Behaviour(OutEvent::SwapSetupCompleted{peer_id, swap_id, state3}) => {
|
||||||
let _ = self.handle_execution_setup_done(peer_id, swap_id, *state3).await;
|
let _ = self.handle_execution_setup_done(peer_id, swap_id, state3).await;
|
||||||
}
|
}
|
||||||
SwarmEvent::Behaviour(OutEvent::SwapDeclined { peer, error }) => {
|
SwarmEvent::Behaviour(OutEvent::SwapDeclined { peer, error }) => {
|
||||||
tracing::warn!(%peer, "Ignoring spot price request because: {}", error);
|
tracing::warn!(%peer, "Ignoring spot price request because: {}", error);
|
||||||
|
@ -34,6 +34,7 @@ pub mod behaviour {
|
|||||||
use libp2p::{NetworkBehaviour, PeerId};
|
use libp2p::{NetworkBehaviour, PeerId};
|
||||||
use uuid::Uuid;
|
use uuid::Uuid;
|
||||||
|
|
||||||
|
#[allow(clippy::large_enum_variant)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum OutEvent {
|
pub enum OutEvent {
|
||||||
SwapSetupInitiated {
|
SwapSetupInitiated {
|
||||||
@ -42,7 +43,7 @@ pub mod behaviour {
|
|||||||
SwapSetupCompleted {
|
SwapSetupCompleted {
|
||||||
peer_id: PeerId,
|
peer_id: PeerId,
|
||||||
swap_id: Uuid,
|
swap_id: Uuid,
|
||||||
state3: Box<State3>,
|
state3: State3,
|
||||||
},
|
},
|
||||||
SwapDeclined {
|
SwapDeclined {
|
||||||
peer: PeerId,
|
peer: PeerId,
|
||||||
@ -57,7 +58,7 @@ pub mod behaviour {
|
|||||||
id: RequestId,
|
id: RequestId,
|
||||||
},
|
},
|
||||||
EncryptedSignatureReceived {
|
EncryptedSignatureReceived {
|
||||||
msg: Box<encrypted_signature::Request>,
|
msg: encrypted_signature::Request,
|
||||||
channel: ResponseChannel<()>,
|
channel: ResponseChannel<()>,
|
||||||
peer: PeerId,
|
peer: PeerId,
|
||||||
},
|
},
|
||||||
|
@ -52,7 +52,7 @@ impl From<(PeerId, Message)> for asb::OutEvent {
|
|||||||
Message::Request {
|
Message::Request {
|
||||||
request, channel, ..
|
request, channel, ..
|
||||||
} => Self::EncryptedSignatureReceived {
|
} => Self::EncryptedSignatureReceived {
|
||||||
msg: Box::new(request),
|
msg: request,
|
||||||
channel,
|
channel,
|
||||||
peer,
|
peer,
|
||||||
},
|
},
|
||||||
|
@ -96,7 +96,7 @@ impl From<OutEvent> for asb::OutEvent {
|
|||||||
} => asb::OutEvent::SwapSetupCompleted {
|
} => asb::OutEvent::SwapSetupCompleted {
|
||||||
peer_id: bob_peer_id,
|
peer_id: bob_peer_id,
|
||||||
swap_id,
|
swap_id,
|
||||||
state3: Box::new(state3),
|
state3,
|
||||||
},
|
},
|
||||||
OutEvent::Error { peer_id, error } => asb::OutEvent::Failure {
|
OutEvent::Error { peer_id, error } => asb::OutEvent::Failure {
|
||||||
peer: peer_id,
|
peer: peer_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user