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

Remove IAsyncConnectionFactory #933

Merged
merged 1 commit into from
Aug 31, 2020

Conversation

danielmarbach
Copy link
Collaborator

Proposed Changes

I propose we remove the IAsyncConnectionFactory interface for v7. It has served it's purpose to evolve the client but now I don't see a reason to keep it anymore

Types of Changes

What types of changes does your code introduce to this project?
Put an x in the boxes that apply

  • Bug fix (non-breaking change which fixes issue #NNNN)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause an observable behavior change in existing systems)
  • Documentation improvements (corrections, new content, etc)
  • Cosmetic change (whitespace, formatting, etc)

Checklist

Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.

  • I have read the CONTRIBUTING.md document
  • I have signed the CA (see https://cla.pivotal.io/sign/rabbitmq)
  • All tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes have been merged and published in related repositories

Further Comments

Should not be backported

@danielmarbach
Copy link
Collaborator Author

@michaelklishin We have not yet established a formal rule how obsoletion should take place so I decided to just remove the interface. Of course we could also do a less drastic step of still having the interface around but obsolete with error. I'm mentioning it for completeness reasons

ConsumerWorkService = new ConsumerWorkService(factory.ConsumerDispatchConcurrency);
}
ConsumerWorkService = factory.DispatchConsumersAsync
? new AsyncConsumerWorkService(factory.ConsumerDispatchConcurrency)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm also wondering if there is a case to be made to simply remove the non-async consumers from 7.0 and keep them async-only?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think that is one discussion topic I was hopping to have in the meeting :D, then write it down and announce it to the community

Copy link
Member

Choose a reason for hiding this comment

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

We can consider it.

@michaelklishin michaelklishin merged commit 9dd3878 into rabbitmq:master Aug 31, 2020
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.

3 participants