|
@ -97,11 +97,12 @@ func (info NodeInfo) CompatibleWith(other NodeInfo) error { |
|
|
|
|
|
|
|
|
// for each of our channels, check if they have it
|
|
|
// for each of our channels, check if they have it
|
|
|
found := false |
|
|
found := false |
|
|
|
|
|
OUTER_LOOP: |
|
|
for _, ch1 := range info.Channels { |
|
|
for _, ch1 := range info.Channels { |
|
|
for _, ch2 := range other.Channels { |
|
|
for _, ch2 := range other.Channels { |
|
|
if ch1 == ch2 { |
|
|
if ch1 == ch2 { |
|
|
found = true |
|
|
found = true |
|
|
break // only need one
|
|
|
|
|
|
|
|
|
break OUTER_LOOP // only need one
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|