mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
p2p: fix break in double loop
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user