Update p2p/p2p-core/src/ban.rs

Co-authored-by: Boog900 <boog900@tutanota.com>
This commit is contained in:
hinto-janai 2024-10-08 16:50:46 -04:00 committed by GitHub
parent 4fa37deec5
commit 337f42f702
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ pub struct SetBan<A: NetZoneAddress> {
pub struct BanState<A: NetZoneAddress> { pub struct BanState<A: NetZoneAddress> {
/// Address of the peer. /// Address of the peer.
pub address: A, pub address: A,
/// - If [`Some`], when this peer will be unbanned /// - If [`Some`], the peer is banned until this [`Instant`]
/// - If [`None`], the peer is not currently banned /// - If [`None`], the peer is not currently banned
pub unban_instant: Option<Instant>, pub unban_instant: Option<Instant>,
} }