diff --git a/config.go b/config.go index 7c017786..e20340ae 100644 --- a/config.go +++ b/config.go @@ -232,7 +232,7 @@ func validDbType(dbType string) bool { // removeDuplicateAddresses returns a new slice with all duplicate entries in // addrs removed. func removeDuplicateAddresses(addrs []string) []string { - var result []string + result := make([]string, 0, len(addrs)) seen := map[string]bool{} for _, val := range addrs { if _, ok := seen[val]; !ok {