Explorar el Código

Start working loop first

tags/0.2
mikespook hace 11 años
padre
commit
aa9b5e9598
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. +3
    -3
      worker/worker.go

+ 3
- 3
worker/worker.go Ver fichero

@@ -190,13 +190,13 @@ func (worker *Worker) Work() {
v.Close()
}
}()
for funcname, f := range worker.funcs {
worker.addFunc(funcname, f.timeout)
}
worker.running = true
for _, v := range worker.agents {
go v.Work()
}
for funcname, f := range worker.funcs {
worker.addFunc(funcname, f.timeout)
}
ok := true
for ok {
var job *Job


Cargando…
Cancelar
Guardar