change proxy to satisfy both gofmt 1.3 and 1.4 gofmt

gofmt -s from 1.4  does not like
	for _ = range BLAH
it wants
	for range BLAH

But gofmt from 1.3 dies:
	./pkg/proxy/config/config.go:265:6: expected operand, found 'range'
	./pkg/proxy/config/config.go:268:3: expected '{', found 'EOF'

So instead, rewrite the code to make them both happy
This commit is contained in:
Eric Paris 2015-02-20 12:30:33 -05:00
parent 9965604d4b
commit e8acfe5f81

View File

@ -262,7 +262,8 @@ func (s *serviceStore) MergedState() interface{} {
// watchForUpdates invokes bcaster.Notify() with the latest version of an object
// when changes occur.
func watchForUpdates(bcaster *config.Broadcaster, accessor config.Accessor, updates <-chan struct{}) {
for range updates {
for true {
<-updates
bcaster.Notify(accessor.MergedState())
}
}