-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
fall back gracefully when max thread IDs are reached #62
Comments
I'm guessing this is the cause of a panic at the following line: Line 297 in 81c1c3f
If anything, replacing that |
Yeah, that's a good point; we should at least make the panic message a bit more helpful in that case (and perhaps include what the configured thread count is). I'd happily merge a PR that makes this change, if you're interested in opening one? Otherwise, I'll try to improve it when I get the chance. |
* Emit a nicer panic when thread count overflows `MAX_SHARDS` Tackles #62 (comment) * Replace `if cond { panic` with `assert!` TODO: negate the condition in the assertion Co-authored-by: Eliza Weisman <[email protected]> * Negate the condition in the assertion Co-authored-by: Eliza Weisman <[email protected]>
When the thread ID limit defined by the
Config
is reached, we currently panic. This isn't great.As I said in tokio-rs/tracing#1485:
The text was updated successfully, but these errors were encountered: