Skip to content

Commit

Permalink
cleanup after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
antiochp committed May 14, 2019
1 parent f02e2f0 commit 4f43b2f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions p2p/src/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ use crate::core::pow::Difficulty;
use crate::core::ser::Writeable;
use crate::core::{core, global};
use crate::handshake::Handshake;
use crate::msg::{self, BanReason, GetPeerAddrs, KernelDataRequest, Locator, Ping, TxHashSetRequest, Type};
use crate::msg::{
self, BanReason, GetPeerAddrs, KernelDataRequest, Locator, Ping, TxHashSetRequest, Type,
};
use crate::protocol::Protocol;
use crate::types::{
Capabilities, ChainAdapter, Error, NetAdapter, P2PConfig, PeerAddr, PeerInfo, ReasonForBan,
Expand Down Expand Up @@ -382,7 +384,9 @@ impl Peer {

pub fn send_kernel_data_request(&self) -> Result<(), Error> {
debug!("Asking {} for kernel data.", self.info.addr);
connection!(self).send(&KernelDataRequest {}, msg::Type::KernelDataRequest)
self.connection
.lock()
.send(&KernelDataRequest {}, msg::Type::KernelDataRequest)
}

/// Stops the peer, closing its connection
Expand Down

0 comments on commit 4f43b2f

Please sign in to comment.