ui: Refactoring

This commit is contained in:
Hajime Hoshi 2016-02-21 18:01:43 +09:00
parent 60a504543f
commit bae6d62067

View File

@ -75,11 +75,9 @@ var (
func Loop() { func Loop() {
<-workerCreated <-workerCreated
for { for {
select { <-worker.WorkAvailable()
case <-worker.WorkAvailable():
worker.DoWork() worker.DoWork()
} }
}
} }
func (c *Context) init() { func (c *Context) init() {