fix incorrect capacity calc
This commit is contained in:
parent
5fdb33e2c0
commit
8cf8af723d
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue