docs: rm global ip docs (#1555)

This commit is contained in:
Matthias Seitz
2023-02-25 10:22:31 +01:00
committed by GitHub
parent 7d6563dee5
commit 305e992eed

View File

@ -27,8 +27,6 @@ pub struct BanList {
impl BanList {
/// Creates a new ban list that bans the given peers and ips indefinitely.
///
/// This will ban non-global IPs if they are included in `banned_ips`
pub fn new(
banned_peers: impl IntoIterator<Item = PeerId>,
banned_ips: impl IntoIterator<Item = IpAddr>,
@ -40,8 +38,6 @@ impl BanList {
}
/// Creates a new ban list that bans the given peers and ips with an optional timeout.
///
/// This will ban non-global IPs if they are included in `banned_ips`
pub fn new_with_timeout(
banned_peers: HashMap<PeerId, Option<Instant>>,
banned_ips: HashMap<IpAddr, Option<Instant>>,