reflect.DeepEqual is a value copy that causes golang to continuously allocate memory
This commit is contained in:
parent
893b0de8fa
commit
4e2c4f92d3
2 changed files with 11 additions and 1 deletions
|
@ -155,7 +155,7 @@ func (machine *Machine) isOnline() bool {
|
|||
|
||||
func containsAddresses(inputs []string, addrs []string) bool {
|
||||
for _, addr := range addrs {
|
||||
if contains(inputs, addr) {
|
||||
if containsStr(inputs, addr) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue