-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
limiter kills previous goroutines if used 2 or more the same time #24
Comments
does it panic ? |
otherwise, i am not sure i understand the question |
No panic, no errors, new go routines of the first limiter does not spawn
Отправлено из мобильной Почты Mail.ru
четверг, 6 апреля 2023 г. в 21:26 +0300 от ***@***.*** ***@***.***>:
…does it panic ?
since if it does, the go routine will crash the process i believe.
—
Reply to this email directly, view it on GitHub , or unsubscribe .
You are receiving this because you authored the thread. Message ID: <korovkin/limiter/issues/24/1499456607 @ github . com>
|
I believe it just stops to spawn when the second one runs and working I’ve seen in in logs
Отправлено из мобильной Почты Mail.ru
четверг, 6 апреля 2023 г. в 21:26 +0300 от ***@***.*** ***@***.***>:
…otherwise, i am not sure i understand the question
—
Reply to this email directly, view it on GitHub , or unsubscribe .
You are receiving this because you authored the thread. Message ID: <korovkin/limiter/issues/24/1499457131 @ github . com>
|
perhaps you could share the whole end2end example with the main function so i could run it and understand it more ? |
`func main() {
}` Run it and wait some time, you will see only l2 is alive after some minutes |
@evgenyrelap i tried the code above, it's running here - it seems to work so what is the question the usage pattern is not exactly as intended ... but still works, i believe. |
worker.Reader stopping worker.Scanner once started.
The text was updated successfully, but these errors were encountered: