Remove defers in widget loading

This commit is contained in:
Caleb Bassi 2018-04-28 19:30:09 -07:00
parent 92374f240f
commit 21747ecd06
1 changed files with 6 additions and 6 deletions

12
main.go
View File

@ -194,29 +194,29 @@ func initWidgets() {
wg.Add(widgetCount)
go func() {
defer wg.Done()
cpu = w.NewCPU(interval, zoom)
wg.Done()
}()
go func() {
defer wg.Done()
mem = w.NewMem(interval, zoom)
wg.Done()
}()
go func() {
defer wg.Done()
proc = w.NewProc(keyPressed)
wg.Done()
}()
if !minimal {
go func() {
defer wg.Done()
net = w.NewNet()
wg.Done()
}()
go func() {
defer wg.Done()
disk = w.NewDisk()
wg.Done()
}()
go func() {
defer wg.Done()
temp = w.NewTemp()
wg.Done()
}()
}