Update multireader.go

description
This commit is contained in:
XoxJlopeZi4BB 2025-07-09 00:45:56 +04:00
parent d3b6541945
commit b425f9aab6

View File

@ -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