Skip to content

Commit

Permalink
refactor: Upgrade Openraft to 0.9.7 (#15339)
Browse files Browse the repository at this point in the history
This update includes a fix for excessive log scanning during startup to
locate the membership configuration.

See: databendlabs/openraft@14d42e4
  • Loading branch information
drmingdrmer authored Apr 25, 2024
1 parent 82c3ced commit f26dba0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
10 changes: 6 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ opendal = { version = "0.45.1", features = [
sled = { git = "https://github.com/datafuse-extras/sled", tag = "v0.34.7-datafuse.1", default-features = false }

# openraft for debugging
# openraft = { git = "https://github.com/datafuselabs/openraft", tag = "v0.9.0", features = [
openraft = { version = "0.9.1", features = [
#openraft = { git = "https://github.com/drmingdrmer/openraft", branch = "release-0.9", features = [
openraft = { version = "0.9.7", features = [
"serde",
"tracing-log",
"generic-snapshot-data",
Expand Down
2 changes: 2 additions & 0 deletions src/meta/types/src/raft_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

//! This mod wraps openraft types that have generics parameter with concrete types.
use openraft::impls::OneshotResponder;
use openraft::RaftTypeConfig;
use openraft::TokioRuntime;

Expand All @@ -36,6 +37,7 @@ impl RaftTypeConfig for TypeConfig {
type Entry = openraft::entry::Entry<TypeConfig>;
type SnapshotData = SnapshotData;
type AsyncRuntime = TokioRuntime;
type Responder = OneshotResponder<TypeConfig>;
}

pub type CommittedLeaderId = openraft::CommittedLeaderId<NodeId>;
Expand Down

0 comments on commit f26dba0

Please sign in to comment.