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

Fix: Correct maxsize of MetadataLookupQueue #1805

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

ijc
Copy link
Contributor

@ijc ijc commented Dec 15, 2024

@khers
Copy link
Contributor

khers commented Dec 15, 2024

Small nit, could you please include the explanation for why this fixes the bug for you from your issue in the commit log here?

Setting a default in the `_init_` hook is ineffective because the
`asyncio.Queue.__init__` always passes in a concrete value. Since that
constructor itself sets a default of zero this is what is used unless we pass
in a size at construction time.

Fixes https://github.com/music-assistant/hass-music-assistant/issues/3230.
@ijc ijc force-pushed the metadataqueue-maxlen branch from 001ff30 to 9856f6e Compare December 16, 2024 06:51
@ijc
Copy link
Contributor Author

ijc commented Dec 16, 2024

Done.

Copy link
Member

@marcelveldt marcelveldt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@marcelveldt marcelveldt merged commit cf77b99 into music-assistant:dev Dec 16, 2024
3 checks passed
This was referenced Dec 16, 2024
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.

(Artist) Metadata not refreshing
3 participants