Remove unused var

The usage of this var was removed in b92f895c23.

Found by using staticcheck
This commit is contained in:
Daniel Nephin 2020-05-14 14:38:05 -04:00
parent 89a6492033
commit 5c99109dd9
1 changed files with 0 additions and 6 deletions

View File

@ -420,12 +420,6 @@ func (a *Autopilot) updateClusterHealth() error {
// consistent of a sample as possible. We capture the leader's index
// here as well so it roughly lines up with the same point in time.
targetLastIndex := raftNode.LastIndex()
var fetchList []*ServerInfo
for _, server := range servers {
if parts, ok := serverMap[string(server.ID)]; ok {
fetchList = append(fetchList, parts)
}
}
d := time.Now().Add(a.healthInterval / 2)
ctx, cancel := context.WithDeadline(context.Background(), d)
defer cancel()