Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use direct exchange routing v1 for custom exchange types
Custom exchange types can use the direct exchange as a proxy for routing. However, custom exchange types should continue to use "direct exchange routing v1" because their bindings are not inserted into the new routing table `rabbit_index_route`. This commits avoids changing the custom exchange types to call `rabbit_router:match_routing_key/2` directly as done in rabbitmq/rabbitmq-delayed-message-exchange#200 and rabbitmq/rabbitmq-lvc-exchange#32 because other exchange types are out there (as we learnt in #4606 (comment)) which also need to continue to use v1. So, the cleaner approach is to only use direct exchange routing v2 if 1. the feature flag 'direct_exchange_routing_v2' is enabled, and 2. the source exchange is of type 'direct'
- Loading branch information