Browse Source

p2p: fix break in double loop

pull/1049/head
Ethan Buchman 7 years ago
parent
commit
b6eb275b22
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      p2p/node_info.go

+ 2
- 1
p2p/node_info.go 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
}
}
}


Loading…
Cancel
Save