test: Modify can_serde_config_test (#1048)

Co-authored-by: lambdaclass-user <github@lambdaclass.com>
Co-authored-by: xqft <estefano.bargas@fing.edu.uy>
This commit is contained in:
Francisco Krause Arnim
2023-01-31 00:48:17 -03:00
committed by GitHub
parent 55fc6924b9
commit be70f810e9
6 changed files with 42 additions and 14 deletions

View File

@ -4,7 +4,7 @@ use std::{collections::HashMap, net::IpAddr, time::Instant};
/// Stores peers that should be taken out of circulation either indefinitely or until a certain
/// timestamp
#[derive(Debug, Clone, Default)]
#[derive(Debug, Clone, Default, PartialEq)]
pub struct BanList {
/// A set of IPs whose packets get dropped instantly.
banned_ips: HashMap<IpAddr, Option<Instant>>,