Remove empty list of peers check
The `limit_last_seen_times` can now safely handle an empty list.
This commit is contained in:
parent
966430d400
commit
82452621e0
|
@ -355,9 +355,7 @@ fn validate_addrs(
|
||||||
|
|
||||||
let mut addrs: Vec<_> = addrs.into_iter().collect();
|
let mut addrs: Vec<_> = addrs.into_iter().collect();
|
||||||
|
|
||||||
if !addrs.is_empty() {
|
|
||||||
limit_last_seen_times(&mut addrs, last_seen_limit);
|
limit_last_seen_times(&mut addrs, last_seen_limit);
|
||||||
}
|
|
||||||
|
|
||||||
addrs.into_iter()
|
addrs.into_iter()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue