Resolve old TODO that was waiting on us to move off of go 1.3

pull/6/head
Alex Robinson 2016-01-07 21:06:00 -05:00
parent 13260188d5
commit 6528999856
1 changed files with 1 additions and 5 deletions

View File

@ -620,11 +620,7 @@ func getNodeConditionPredicate() cache.NodeConditionPredicate {
func (s *ServiceController) nodeSyncLoop(period time.Duration) {
var prevHosts []string
var servicesToUpdate []*cachedService
// TODO: Eliminate the unneeded now variable once we stop compiling in go1.3.
// It's needed at the moment because go1.3 requires ranges to be assigned to
// something to compile, and gofmt1.4 complains about using `_ = range`.
for now := range time.Tick(period) {
_ = now
for range time.Tick(period) {
nodes, err := s.nodeLister.NodeCondition(getNodeConditionPredicate()).List()
if err != nil {
glog.Errorf("Failed to retrieve current set of nodes from node lister: %v", err)