diff options
-rw-r--r-- | gwic.go | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -58,10 +58,7 @@ func feedworkers(wlist []*work, w string) []*work { for _, wc := range wlist { if wc.left == 0 { wc.finish() - // TODO: remove the right one? - if len(wlist) >= 1 { - ret = wlist[1:] - } + ret = wlist[1:] } else { wc.c <- w wc.left -= 1 |