This commit is contained in:
draganrakita 2020-12-17 17:24:33 +01:00 committed by rakita
parent 705bc71593
commit 8d3e0582a8
2 changed files with 2 additions and 2 deletions

View File

@ -15,10 +15,10 @@
// along with OpenEthereum. If not, see <http://www.gnu.org/licenses/>.
use bytes::Bytes;
use devp2p::PAYLOAD_SOFT_LIMIT;
use enum_primitive::FromPrimitive;
use ethereum_types::H256;
use network::{self, PeerId};
use devp2p::PAYLOAD_SOFT_LIMIT;
use parking_lot::RwLock;
use rlp::{Rlp, RlpStream};
use std::cmp;

View File

@ -168,7 +168,7 @@ where
None
}
fn protocol_version(&self, protocol: &ProtocolId, peer_id: PeerId) -> u8 {
fn protocol_version(&self, protocol: &ProtocolId, _peer_id: PeerId) -> u8 {
if protocol == &PAR_PROTOCOL {
PAR_PROTOCOL_VERSION_2.0
} else {