Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelsq committed Jul 2, 2020
1 parent 0de2805 commit f533f33
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/wtc/wtc.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,8 @@ func Start(cfg *Config) {

logger = make(chan []byte, 256)
go func() {
for {
select {
case l := <-logger:
os.Stdout.Write(l)
}
for l := range logger {
os.Stdout.Write(l)
}
}()

Expand Down Expand Up @@ -314,8 +311,8 @@ func findAndTrig(async bool, key []string, pkg, path string) {
}

if async {
wg.Add(1)
go func() {
wg.Add(1)
defer wg.Done()
fn()
}()
Expand Down

0 comments on commit f533f33

Please sign in to comment.