mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-10 08:29:58 +08:00
fix golint issues
This commit is contained in:
@@ -24,11 +24,8 @@ func main() {
|
||||
ticker := time.NewTicker(time.Second * 5)
|
||||
defer ticker.Stop()
|
||||
|
||||
for {
|
||||
select {
|
||||
case <-ticker.C:
|
||||
percent := stat.CpuUsage()
|
||||
fmt.Println("cpu:", percent)
|
||||
}
|
||||
for range ticker.C {
|
||||
percent := stat.CpuUsage()
|
||||
fmt.Println("cpu:", percent)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user