rocketmq
rocketmq copied to clipboard
[Enhancement] Refactor AllocateMachineRoomNearby
Before Creating the Enhancement Request
- [X] I have confirmed that this should be classified as an enhancement rather than a bug/feature.
Summary
Refactor
Motivation
Make the code better and better
Describe the Solution You'd Like
- Consistency in abstraction levels
- Use method names instead of comments
- Make the code more concise: inline the result returned by a successful condition into a block of code.
AllocateMachineRoomNearByTest ran successfully
Describe Alternatives You've Considered
none
Additional Context
No response