fix incorrect capacity calc

This commit is contained in:
Jade Ellis 2025-01-18 16:16:16 +00:00
parent 5fdb33e2c0
commit 8cf8af723d
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -1885,7 +1885,7 @@ impl Config {
let mut addrs = Vec::with_capacity( let mut addrs = Vec::with_capacity(
self.get_bind_hosts() self.get_bind_hosts()
.len() .len()
.saturating_add(self.get_bind_ports().len()), .saturating_mul(self.get_bind_ports().len()),
); );
for host in &self.get_bind_hosts() { for host in &self.get_bind_hosts() {
for port in &self.get_bind_ports() { for port in &self.get_bind_ports() {