Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

brendon
Copy link
Contributor

@brendon brendon commented Apr 1, 2025

Calculating the stream_name from within the ThreadDebouncer was leading to incorrect stream channel names in my setup where the global_id includes the Tennant id. It's a multi-tenant application and the current database name forms part of the global_id. Within the ThreadDebouncer it would seem to fixate on a particular database connection rather than the connection used by the current request.

Simply calculating the stream_name before invoking the ThreadDebouncer fixed the issue.

I don't see the need for additional tests unless you wanted to test my failure scenario but I'm not quite sure how to do that.

@brendon
Copy link
Contributor Author

brendon commented Apr 8, 2025

Can I get a review on this one please? So far it's working well for us in production. @jorgemanrubia

Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

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

Thanks @brendon

@jorgemanrubia jorgemanrubia merged commit cb47713 into hotwired:main Apr 9, 2025
6 checks passed
@brendon
Copy link
Contributor Author

brendon commented Apr 9, 2025

Thanks @jorgemanrubia, if it's not too much trouble, would you be able to cut a new release? :)

@brendon
Copy link
Contributor Author

brendon commented May 8, 2025

Thanks @jorgemanrubia, if it's not too much trouble, would you be able to cut a new release? :)

Just following this one up @jorgemanrubia :)

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

Successfully merging this pull request may close these issues.

2 participants