Skip to content

Commit

Permalink
Change config to defaults
Browse files Browse the repository at this point in the history
Signed-off-by: Heinz N. Gies <[email protected]>
  • Loading branch information
Licenser committed Apr 3, 2023
1 parent ff14d9b commit 5abdada
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/raft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ use tokio::task::JoinError;
/// When the config isn't valid
pub fn config() -> ClusterResult<Config> {
let config = Config {
heartbeat_interval: 250,
election_timeout_min: 299,
// heartbeat_interval: 250,
// election_timeout_min: 299,
..Default::default()
};
Ok(config.validate()?)
Expand Down
1 change: 0 additions & 1 deletion src/raft/api/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ async fn add_node(
extract::OriginalUri(uri): extract::OriginalUri,
Json(addr): Json<Addr>,
) -> APIResult<Json<NodeId>> {
// FIXME: returns 500 if not the leader
// FIXME: better client errors

// 1. ensure we are on the leader, as we need to read some state-machine state
Expand Down

0 comments on commit 5abdada

Please sign in to comment.