-
Notifications
You must be signed in to change notification settings - Fork 5
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
Consumer Tag #208
Consumer Tag #208
Conversation
Hi @hnaderi ! I'm trying to get the PR done but I'm struggling with Mima.
I thought to add the old def consumeRaw(
queue: QueueName,
noLocal: NoLocal = false,
noAck: NoAck = true,
exclusive: Boolean = false,
arguments: FieldTable = FieldTable.empty,
consumerTag: Option[ConsumerTag] = None
): Stream[F, DeliveredMessageRaw]
final def consumeRaw(
queue: QueueName,
noLocal: NoLocal = false,
noAck: NoAck = true,
exclusive: Boolean = false,
arguments: FieldTable = FieldTable.empty
): Stream[F, DeliveredMessageRaw] =
consumeRaw(queue, noLocal, noAck, exclusive, arguments, None) However the compiler is complaining about overloaded methods because of default arguments.
What's the best way to deal with this situation ? Should I remove default args, break binary comp or introduce a new method name ? 🤔 |
One way would be to add new methods instead of changing the old ones, but it's not worth it and I think we can break the bin-compat here, as the changes are source compatible. I just bumped up the minor version and pushed it on the PR, so it should be fixed. |
@rlavolee By the way, are you finished by the PR? or are there other changes you want to make? |
@hnaderi I'm done with it :) and eager to test it. |
@rlavolee The snapshot version should be published in a few minutes. |
@hnaderi Your're welcome that was fun. Lepus is great ! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 😉
And thanks for Lepus !
adds the option to define a custom consumer tag or fallback to random tag