mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-08-08 14:05:51 +00:00
Do some cleanups (#14608)
* Do some cleanups Found them while looking over the code. * More * Fix
This commit is contained in:
+2
-2
@@ -16,7 +16,7 @@
|
||||
|
||||
//! Helper for handling (i.e. answering) BEEFY justifications requests from a remote peer.
|
||||
|
||||
use codec::Decode;
|
||||
use codec::DecodeAll;
|
||||
use futures::{channel::oneshot, StreamExt};
|
||||
use log::{debug, error, trace};
|
||||
use sc_client_api::BlockBackend;
|
||||
@@ -77,7 +77,7 @@ impl<B: Block> IncomingRequest<B> {
|
||||
F: FnOnce(usize) -> Vec<ReputationChange>,
|
||||
{
|
||||
let netconfig::IncomingRequest { payload, peer, pending_response } = raw;
|
||||
let payload = match JustificationRequest::decode(&mut payload.as_ref()) {
|
||||
let payload = match JustificationRequest::decode_all(&mut payload.as_ref()) {
|
||||
Ok(payload) => payload,
|
||||
Err(err) => {
|
||||
let response = netconfig::OutgoingResponse {
|
||||
|
||||
Reference in New Issue
Block a user