diff --git a/test/raft/replication_test.cc b/test/raft/replication_test.cc index 69b7356266..3223768203 100644 --- a/test/raft/replication_test.cc +++ b/test/raft/replication_test.cc @@ -396,6 +396,16 @@ public: std::unordered_map rpc::net; +struct set_config_entry { + size_t node_idx; + bool can_vote; + + set_config_entry(size_t idx, bool can_vote = true) + : node_idx(idx), can_vote(can_vote) + {} +}; +using set_config = std::vector; + struct test_server { std::unique_ptr server; state_machine* sm; @@ -559,16 +569,6 @@ struct leader { }; using partition = std::vector>; -struct set_config_entry { - size_t node_idx; - bool can_vote; - - set_config_entry(size_t idx, bool can_vote = true) - : node_idx(idx), can_vote(can_vote) - {} -}; -using set_config = std::vector; - struct tick { uint64_t ticks; };