Remove empty list of peers check

The `limit_last_seen_times` can now safely handle an empty list.
This commit is contained in:
Janito Vaqueiro Ferreira Filho 2021-05-27 21:29:49 +00:00
parent 966430d400
commit 82452621e0
1 changed files with 1 additions and 3 deletions

View File

@ -355,9 +355,7 @@ fn validate_addrs(
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()
}