Remove unused var
The usage of this var was removed in b92f895c233bf8a99ae35361117a90416fea29b5. Found by using staticcheck
This commit is contained in:
parent
16bbb11aad
commit
aa8009ee45
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue