Skip to content

Commit

Permalink
Merge pull request #66 from vavrusa/master
Browse files Browse the repository at this point in the history
fixed an off by one error
  • Loading branch information
kshvakov authored Sep 1, 2017
2 parents 7204389 + 960e5fb commit 1bc9fca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func dial(network string, hosts []string, noDelay bool, openStrategy openStrateg
conn net.Conn
ident = abs(int(atomic.AddInt32(&tick, 1)))
)
for i := 0; i <= len(hosts); i++ {
for i := range hosts {
var num int
switch openStrategy {
case connOpenInOrder:
Expand Down

0 comments on commit 1bc9fca

Please sign in to comment.