-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RaftStorage
: add method get_log_state() -> Result<(Option<LogId>, Option<LogId>, StorageError>
to return the first and last log id in the store
#61
Comments
👋 Thanks for opening this issue! Get help or engage by:
|
RaftStorage
: add method log_state() -> Result<(Option<LogId>, Option<LogId>, StorageError>
to return the first and last log id in the storeRaftStorage
: add method get_log_state() -> Result<(Option<LogId>, Option<LogId>, StorageError>
to return the first and last log id in the store
/assignme |
Hi, I have a question, the old |
There are some corner cases with using LogId for
|
get~ thanks XD |
@Veeupup Sorry for the late reply. Is it blocking something on your side? It seems to be working fine on my side, at least the tests passed after the changes were made, if I'm not missing something. I'll fill the pr later, and if my side is blocking your progress, it's ok to leave it to me XD |
@YangKian yeah, u can finish it later. from my side, it will make nonsense if |
@Veeupup Ok, let me handle it~ |
RaftStorage
: add methodget_log_state() -> Result<(Option<LogId>, Option<LogId>, StorageError>
to return the first and last log id in the store.Then remove
first_id_in_log()
andlast_id_in_log()
.This way to simplify the trait API users need to impl.
openraft/openraft/src/storage.rs
Lines 173 to 180 in 9b00e7c
The text was updated successfully, but these errors were encountered: