Skip to content

Commit

Permalink
Fixed range syntax for backwards compatability for go 1.2 and 1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Yu committed Nov 29, 2017
1 parent 85d4003 commit bcdb5e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func LogOnCue(r Registry, ch chan interface{}, l Logger) {
func LogScaled(r Registry, freq time.Duration, scale time.Duration, l Logger) {
ch := make(chan interface{})
go func(channel chan interface{}) {
for _ := range time.Tick(freq) {
for _ = range time.Tick(freq) {
channel <- struct{}{}
}
}(ch)
Expand All @@ -38,7 +38,7 @@ func LogScaledOnCue(r Registry, ch chan interface{}, scale time.Duration, l Logg
du := float64(scale)
duSuffix := scale.String()[1:]

for _ := range ch {
for _ = range ch {
r.Each(func(name string, i interface{}) {
switch metric := i.(type) {
case Counter:
Expand Down

0 comments on commit bcdb5e0

Please sign in to comment.