tikv / raft-rs

Raft distributed consensus algorithm implemented in Rust.
Apache License 2.0
2.86k stars 391 forks source link

Question - Migrate `raft-rs 0.6.0a` to `raft-rs 0.7.0` #504

Closed jopemachine closed 1 year ago

jopemachine commented 1 year ago

I'm having trouble because the example code that works in raft-rs 0.6.0 alpha version does not function properly when updated to 0.7.0.

I have made some inferences and concluded that the cause may be related to the 403 PR or subsequent changes related to async.

https://github.com/tikv/raft-rs/pull/403/files

According to my understanding, I understood that some breaking changes occurred during the process of adding async ready and LightReady-related logic in this version upgrade.

Could you tell me what breaking change occurred through this PR and how should I update the example code?

jopemachine commented 1 year ago

I'm sorry for the confusion, I found the bug in my written code, it is not related to kind of breaking change. So, I will close the issue