Closed EvenLjj closed 1 month ago
The recent update enhances router configurations in the Sofa RPC framework with a new constant CONSUMER_ROUTERS
, empowering consumer configuration capabilities. Changes encompass initializing and managing router lists in ConsumerConfig
, adjusting related tests, and updating configuration files to support the new router settings.
Files | Change Summary |
---|---|
RouterChain.java FilterChain.java |
Refactored loop processing for routerAliases and filterAliases using streams for improved handling. Removed unnecessary assignments. |
RouterChainTest.java |
Removed config.setRouter call from buildProviderChain method. |
ConsumerConfigTest.java |
Added imports, modified test methods, and introduced a new test for router functionality. |
rpc-config.json |
Added consumer.routers configuration with specific router names. |
rpc-config-default.json |
Added consumer.routers configuration with an empty array value. |
In code's realm where changes gleam,
New routers lead in the grand scheme.
Tests refined, configs align,
Consumer paths now intertwine.
With lists of routers, we progress,
In Sofa's world, we find success.
🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
support consumer routers config
Summary by CodeRabbit
New Features
Improvements
Testing
Configuration
rpc-config.json
andrpc-config-default.json
to include new consumer router configurations.