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

Dont use shovel name as consumer tag #634

Merged
merged 5 commits into from
Feb 12, 2024
Merged

Conversation

viktorerlingsson
Copy link
Member

@viktorerlingsson viktorerlingsson commented Feb 8, 2024

WHAT is this pull request doing?

Sets consumer tag for shovels to just shovel instead of using the shovel name, since that could be longer than 255 characters.

Based on discussion in #627

HOW can this pull request be tested?

Run spec

@@ -44,7 +44,7 @@ module LavinMQ
@delete_after = DEFAULT_DELETE_AFTER, @prefetch = DEFAULT_PREFETCH,
@ack_mode = DEFAULT_ACK_MODE, consumer_args : Hash(String, JSON::Any)? = nil,
direct_user : User? = nil)
@tag = "Shovel[#{@name}]"
@tag = "Shovel-#{Random::Secure.urlsafe_base64(24)}"
Copy link
Member

Choose a reason for hiding this comment

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

I don't know what this adds, afaik this is never logged anywhere. The name of the receiving queue would make more sense. Else, just shovel.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, you're right. I was thinking we wanted to keep consumer tags unique, but I guess that doesn't matter here since they are always on their own channel.

@viktorerlingsson viktorerlingsson changed the title Shovel consumer tag Dont use shovel name as consumer tag Feb 12, 2024
@viktorerlingsson viktorerlingsson merged commit 8544bb9 into main Feb 12, 2024
23 of 26 checks passed
@viktorerlingsson viktorerlingsson deleted the shovel_consumer_tag branch February 12, 2024 10:40
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.

2 participants