Skip to content
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

feat: Gauntlet func now takes a context #13

Merged
merged 4 commits into from
Jun 10, 2024
Merged

feat: Gauntlet func now takes a context #13

merged 4 commits into from
Jun 10, 2024

Conversation

ananthb
Copy link
Member

@ananthb ananthb commented Jun 4, 2024

Gauntlet func takes a context as the first arg.
The context is cancelled after tinyca.GauntletTimeout. The gauntlet result is ignored after tinyca.GauntletTimeout. A 503 error is returned to the client in this case.

Gauntlet func takes a context as the first arg.
The context is cancelled after tinyca.GauntletTimeout.
The gauntlet result is ignored after tinyca.GauntletTimeout.
A 503 error is returned to the client in this case.
ananthb added 2 commits June 5, 2024 03:32
Run all user-supplied gauntlet funcs inside a waitgroup.
When users are done with a CA instance, they can call
[CA.Close] to wait for all of the wg goroutines to exit.
@ananthb ananthb merged commit 97eb606 into main Jun 10, 2024
1 check passed
@ananthb ananthb deleted the gauntlet-ctx branch June 10, 2024 14:08
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