Skip to content

Commit

Permalink
chore: Set default storage to heed
Browse files Browse the repository at this point in the history
  • Loading branch information
jopemachine committed Sep 23, 2024
1 parent aa84a37 commit 10ce462
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion raftify/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ clap = { version = "4.5.18", features = ["derive"] }
chrono = "0.4.38"

[features]
default = ["inmemory_storage"]
default = ["heed_storage"]
inmemory_storage = []
heed_storage =[]

Expand Down
1 change: 0 additions & 1 deletion raftify/src/storage/inmemory_storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ impl StableStorage for MemStorage {

// Pass apply snapshot if the snapshot is empty
if snapshot.get_metadata().get_index() == INVALID_INDEX {
// Update conf states.
store.set_conf_state(snapshot.get_metadata().clone().take_conf_state());
return Ok(());
}
Expand Down

0 comments on commit 10ce462

Please sign in to comment.