p2p: fix break in double loop

This commit is contained in:
Ethan Buchman
2018-01-24 14:27:37 -05:00
parent 99034904f8
commit b6eb275b22

View File

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