summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-04-18 11:53:42 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-04-18 11:53:42 -0400
commitd583fd5942f47606aaa4aa8b190b1ce5b730ebdc (patch)
treebe3fe8e68ccf63e94404c8fe44e600ebb7ddda01
parent493613b9b3b12d8d7235f2a187a1e3154c5dfa78 (diff)
remove commented out debug code
-rw-r--r--jwg.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/jwg.go b/jwg.go
index 6ef06d0..8daf046 100644
--- a/jwg.go
+++ b/jwg.go
@@ -26,7 +26,6 @@ func (jwg *JobWaitGroup) Do(name string, fn func()) {
panic(fmt.Sprintf("job %q already exists", name))
}
jwg.jobs[name] = true
- //fmt.Fprintf(os.Stderr, "add %p %v\n", &jwg.wg, jwg.wg)
jwg.wg.Add(1)
go func() {
defer func() {
@@ -34,7 +33,6 @@ func (jwg *JobWaitGroup) Do(name string, fn func()) {
defer jwg.lock.Unlock()
jwg.jobs[name] = false
jwg.wg.Done()
- //fmt.Fprintf(os.Stderr, "del %p %v\n", &jwg.wg, jwg.wg)
}()
fn()
}()