databendlabs / openraft

rust raft with improvements
Apache License 2.0
1.41k stars 158 forks source link

Refactor: Automate Initialization of Leader Progress and Replication #1166

Closed drmingdrmer closed 4 months ago

drmingdrmer commented 4 months ago

Changelog

Refactor: Automate Initialization of Leader Progress and Replication

This commit enhances the initialization process of a Leader instance by automating the setup of progress information and replication streams. Previously, these tasks were manually performed by the caller after the leader's creation, which could lead to inconsistencies or additional complexity.


This change is Reviewable