Skip to content
This repository was archived by the owner on Apr 11, 2025. It is now read-only.

Commit 1226e84

Browse files
committed
fix incorrect capacity calc
1 parent 6c58f03 commit 1226e84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/core/config/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,7 @@ impl Config {
18601860
let mut addrs = Vec::with_capacity(
18611861
self.get_bind_hosts()
18621862
.len()
1863-
.saturating_add(self.get_bind_ports().len()),
1863+
.saturating_mul(self.get_bind_ports().len()),
18641864
);
18651865
for host in &self.get_bind_hosts() {
18661866
for port in &self.get_bind_ports() {

0 commit comments

Comments
 (0)