From 0421d6d12fd97b441dd0edad5b0f9e4c217b4539 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 26 Mar 2023 13:55:03 +0800 Subject: [PATCH 1/2] raft: include used header at least, we need to access the declarations of exceptions, like `not_a_leader` and `dropped_entry`, so, instead of relying on other header to do this job for us, we should include the header which include the declaration. so, in this chance "raft.h" is include explicitly. Signed-off-by: Kefu Chai --- raft/server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/raft/server.cc b/raft/server.cc index 021d26a585..9f8e95a052 100644 --- a/raft/server.cc +++ b/raft/server.cc @@ -25,6 +25,7 @@ #include "fsm.hh" #include "log.hh" +#include "raft.hh" using namespace std::chrono_literals; From 3425184b2a1a6573b920e1bfc38682d1bd755c2f Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 26 Mar 2023 14:04:28 +0800 Subject: [PATCH 2/2] raft: include boost header using not "path/to/header" for more consistency with the rest of the source tree. Signed-off-by: Kefu Chai --- raft/server.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raft/server.cc b/raft/server.cc index 9f8e95a052..0304a0d2ce 100644 --- a/raft/server.cc +++ b/raft/server.cc @@ -12,7 +12,7 @@ #include #include #include -#include "boost/range/join.hpp" +#include #include #include #include