Closed caicancai closed 2 weeks ago
The primary change in this update involves removing the initialization of closureQueue
with ClosureQueueImpl(GROUP_ID)
in the initWithLastCommittedIndex()
method of the BallotBoxTest
class. This adjustment streamlines the initialization process, potentially addressing redundancy or improving test efficiency within the BallotBoxTest
.
File Path | Change Summary |
---|---|
jraft-core/src/test/java/com/alipay/sofa/jraft/core/BallotBoxTest.java |
Removed this.closureQueue = new ClosureQueueImpl(GROUP_ID) from initWithLastCommittedIndex() method. |
In the BallotBox, under the test light, The
closureQueue
takes flight, Gone from the method, set to rest, Simplifying processes, at our quest.🚀✨
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?
cc @fengjiachun @SteNicholas PATL, thanks
Motivation:
The code in before is repeated
Modification:
Describe the idea and modifications you've done.
Result:
Fixes #.
If there is no issue then describe the changes introduced by this PR.
Summary by CodeRabbit
initWithLastCommittedIndex()
test method inBallotBoxTest
to no longer initializeclosureQueue
withClosureQueueImpl(GROUP_ID)
.