chore: remove peer types dep (#8368)

This commit is contained in:
Matthias Seitz
2024-05-23 16:02:28 +02:00
committed by GitHub
parent c73af6298e
commit a4933e72a3
3 changed files with 5 additions and 4 deletions

2
Cargo.lock generated
View File

@ -7128,8 +7128,8 @@ dependencies = [
name = "reth-net-common"
version = "0.2.0-beta.7"
dependencies = [
"alloy-primitives",
"pin-project",
"reth-network-types",
"tokio",
]

View File

@ -12,8 +12,8 @@ description = "Types shared across network code"
workspace = true
[dependencies]
# reth
reth-network-types.workspace = true
# ethereum
alloy-primitives.workspace = true
# async
pin-project.workspace = true

View File

@ -1,6 +1,7 @@
//! Support for banning peers.
use reth_network_types::PeerId;
type PeerId = alloy_primitives::B512;
use std::{collections::HashMap, net::IpAddr, time::Instant};
/// Determines whether or not the IP is globally routable.