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

Replace async_trait usage with RPITIT / AFIT #34

Merged
merged 4 commits into from
Feb 16, 2024
Merged

Conversation

svix-jplatte
Copy link
Member

@svix-jplatte svix-jplatte commented Feb 16, 2024

… for our own public traits. This is primarily a docs improvement, but also removes unnecessary boxing of futures.

Details about the funny abbreviations: https://blog.rust-lang.org/2023/12/21/async-fn-rpit-in-traits.html

Before:

Screenshot 2024-02-16 at 12-38-09 QueueProducer in omniqueue queue producer - Rust

After:

Screenshot 2024-02-16 at 12-38-40 QueueProducer in omniqueue queue producer - Rust

Since Delivery has no public constructor, it is impossibly to write a
functional QueueConsumer outside of omniqueue.

This commit should be reverted when that deficiency is fixed.
This commit likely needs to be reverted to add support for custom queue
backends.
@svix-jplatte svix-jplatte changed the title WIP: Replace async_trait usage with TAIT / AFIT Replace async_trait usage with TAIT / AFIT Feb 16, 2024
@svix-jplatte svix-jplatte marked this pull request as ready for review February 16, 2024 11:40
@svix-jplatte svix-jplatte requested a review from a team February 16, 2024 11:42
@svix-jplatte svix-jplatte changed the title Replace async_trait usage with TAIT / AFIT Replace async_trait usage with RPITIT / AFIT Feb 16, 2024
@svix-gabriel svix-gabriel merged commit b7ee36c into main Feb 16, 2024
4 checks passed
@svix-jplatte svix-jplatte deleted the jplatte/tait branch February 16, 2024 14:21
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