You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make config type, variant names less confusing (#1327)
## Motivation
I want to add a kafka variant to `SenderConfig` and `ReceiverOut`, but
with current variant names, that will either cause a common suffix
(which clippy will likely complain about) or odd-looking naming
inconsistencies.
## Solution
Remove the unnecessary `Consumer`, `Producer` variant name suffixes.
Since both enums are `#[serde(untagged)]`, this does not affect
deserialization. Also rename `QueueConsumerConfig` to
`QueueSenderConfig`, which seems to be correct naming given it contains
fields of type `Sender*Opts` and it's contained in the only variant of
`SenderConfig`, whereas the previous name was rather confusing.
Part of svix/monorepo-private#8508.
0 commit comments