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

Number of permits exceeds limit on 32-bit platform #1050

Closed
Aloxaf opened this issue Mar 21, 2023 · 1 comment · Fixed by #1051
Closed

Number of permits exceeds limit on 32-bit platform #1050

Aloxaf opened this issue Mar 21, 2023 · 1 comment · Fixed by #1051

Comments

@Aloxaf
Copy link

Aloxaf commented Mar 21, 2023

let bounded_subs = BoundedSubscriptions::new(u32::MAX);

According to tokio's docs. Semaphore::MAX_PERMITS is usize::MAX >> 3. u32::MAX will cause panic on 32-bit platform.

@niklasad1
Copy link
Member

Yes, nice catch it will be fixed once #1034 is merged.

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 a pull request may close this issue.

2 participants