Skip to content

test(ratelimit): add test limiting num goroutine#51

Open
unicoooorn wants to merge 1 commit into
slon:mainfrom
unicoooorn:main
Open

test(ratelimit): add test limiting num goroutine#51
unicoooorn wants to merge 1 commit into
slon:mainfrom
unicoooorn:main

Conversation

@unicoooorn

Copy link
Copy Markdown

Сейчас тесты успешно проходит очень неудачное наивное решение вроде этого, которое создает по горутине на каждый Acquire.
Предложенный тест проверяет, что для burst в 10000000 запросов не создается больше 1000 горутин - должно быть достаточно с запасом для всех корректный решений.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant