Skip to content

Commit

Permalink
Removed lastAttempt since it is no longer used
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
  • Loading branch information
kozlovic committed May 12, 2020
1 parent 2431048 commit b2be4bb
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions nats.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,13 +517,12 @@ type Statistics struct {

// Tracks individual backend servers.
type srv struct {
url *url.URL
didConnect bool
reconnects int
lastAttempt time.Time
lastErr error
isImplicit bool
tlsName string
url *url.URL
didConnect bool
reconnects int
lastErr error
isImplicit bool
tlsName string
}

type serverInfo struct {
Expand Down Expand Up @@ -1299,8 +1298,6 @@ func (nc *Conn) createConn() (err error) {
}
if _, cur := nc.currentServer(); cur == nil {
return ErrNoServers
} else {
cur.lastAttempt = time.Now()
}

// We will auto-expand host names if they resolve to multiple IPs
Expand Down

0 comments on commit b2be4bb

Please sign in to comment.