mirror of
https://github.com/hinto-janai/cuprate.git
synced 2025-01-10 12:54:44 +00:00
fmt
This commit is contained in:
parent
0f4939a318
commit
669e5a2120
2 changed files with 5 additions and 7 deletions
|
@ -40,7 +40,9 @@ impl<Z: NetworkZone, AdrBook, CSync, PSync, ProtoHdlr, BrdcstStrmMkr>
|
||||||
Connector<Z, AdrBook, CSync, PSync, ProtoHdlr, BrdcstStrmMkr>
|
Connector<Z, AdrBook, CSync, PSync, ProtoHdlr, BrdcstStrmMkr>
|
||||||
{
|
{
|
||||||
/// Create a new connector from a handshaker.
|
/// Create a new connector from a handshaker.
|
||||||
pub const fn new(handshaker: HandShaker<Z, AdrBook, CSync, PSync, ProtoHdlr, BrdcstStrmMkr>) -> Self {
|
pub const fn new(
|
||||||
|
handshaker: HandShaker<Z, AdrBook, CSync, PSync, ProtoHdlr, BrdcstStrmMkr>,
|
||||||
|
) -> Self {
|
||||||
Self { handshaker }
|
Self { handshaker }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,9 +13,7 @@ impl From<ProtocolRequest> for ProtocolMessage {
|
||||||
match value {
|
match value {
|
||||||
ProtocolRequest::GetObjects(val) => Self::GetObjectsRequest(val),
|
ProtocolRequest::GetObjects(val) => Self::GetObjectsRequest(val),
|
||||||
ProtocolRequest::GetChain(val) => Self::ChainRequest(val),
|
ProtocolRequest::GetChain(val) => Self::ChainRequest(val),
|
||||||
ProtocolRequest::FluffyMissingTxs(val) => {
|
ProtocolRequest::FluffyMissingTxs(val) => Self::FluffyMissingTransactionsRequest(val),
|
||||||
Self::FluffyMissingTransactionsRequest(val)
|
|
||||||
}
|
|
||||||
ProtocolRequest::GetTxPoolCompliment(val) => Self::GetTxPoolCompliment(val),
|
ProtocolRequest::GetTxPoolCompliment(val) => Self::GetTxPoolCompliment(val),
|
||||||
ProtocolRequest::NewBlock(val) => Self::NewBlock(val),
|
ProtocolRequest::NewBlock(val) => Self::NewBlock(val),
|
||||||
ProtocolRequest::NewFluffyBlock(val) => Self::NewFluffyBlock(val),
|
ProtocolRequest::NewFluffyBlock(val) => Self::NewFluffyBlock(val),
|
||||||
|
@ -31,9 +29,7 @@ impl TryFrom<ProtocolMessage> for ProtocolRequest {
|
||||||
Ok(match value {
|
Ok(match value {
|
||||||
ProtocolMessage::GetObjectsRequest(val) => Self::GetObjects(val),
|
ProtocolMessage::GetObjectsRequest(val) => Self::GetObjects(val),
|
||||||
ProtocolMessage::ChainRequest(val) => Self::GetChain(val),
|
ProtocolMessage::ChainRequest(val) => Self::GetChain(val),
|
||||||
ProtocolMessage::FluffyMissingTransactionsRequest(val) => {
|
ProtocolMessage::FluffyMissingTransactionsRequest(val) => Self::FluffyMissingTxs(val),
|
||||||
Self::FluffyMissingTxs(val)
|
|
||||||
}
|
|
||||||
ProtocolMessage::GetTxPoolCompliment(val) => Self::GetTxPoolCompliment(val),
|
ProtocolMessage::GetTxPoolCompliment(val) => Self::GetTxPoolCompliment(val),
|
||||||
ProtocolMessage::NewBlock(val) => Self::NewBlock(val),
|
ProtocolMessage::NewBlock(val) => Self::NewBlock(val),
|
||||||
ProtocolMessage::NewFluffyBlock(val) => Self::NewFluffyBlock(val),
|
ProtocolMessage::NewFluffyBlock(val) => Self::NewFluffyBlock(val),
|
||||||
|
|
Loading…
Reference in a new issue