fix infinite loop in stats bw

"break" just breaks from the select, this loops infinitely (fast).

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
Steven Allen 2018-10-13 21:22:48 +01:00
parent 4e0733ccef
commit bf2d7cb2bd

View File

@ -142,7 +142,7 @@ Example:
select {
case <-time.After(interval):
case <-req.Context.Done():
break
return nil
}
}
},