Update multireader.go
description
This commit is contained in:
parent
d3b6541945
commit
b425f9aab6
@ -21,7 +21,7 @@ func tickReader(sem chan struct{}, ticker *time.Ticker, s string) io.Reader {
|
||||
fmt.Fprintf(w, "%s with %v\n", s, t)
|
||||
default: // try to comment this and then run :)
|
||||
}
|
||||
<-sem // add a ticket to the semaphore
|
||||
<-sem // release it
|
||||
}
|
||||
}()
|
||||
return r
|
||||
|
Loading…
Reference in New Issue
Block a user