Skip to content
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

Feature: Add Raft::external_state_machine_request() to run a function inside state machine #1206

Merged
merged 1 commit into from
Jul 29, 2024

Commits on Jul 28, 2024

  1. Feature: Add Raft::external_state_machine_request() to run a functi…

    …on inside state machine
    
    Add `Raft::external_state_machine_request()` in a fire-and-forget manner,
    and `Raft::with_state_machine()` blocks waiting on the response.
    
    If the input StateMachine is a different type from the one in
    `RaftCore`, `with_state_machine()` an error, while
    `external_state_machine_request()` silently ignores it.
    
    Other changes: move OptionalSerde, OptionalSync, OptionalSync from
    `openraft::` to `openraft::base::`
    drmingdrmer committed Jul 28, 2024
    Configuration menu
    Copy the full SHA
    f8756fb View commit details
    Browse the repository at this point in the history