From 5245b11b4bd84f7305b154c50191159de9abf8c6 Mon Sep 17 00:00:00 2001 From: longfar Date: Sun, 29 Sep 2024 17:10:05 +0800 Subject: [PATCH] fix: code format --- src/base_cmd.cc | 2 +- src/praft/praft.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base_cmd.cc b/src/base_cmd.cc index 5fcd499f..e247ad08 100644 --- a/src/base_cmd.cc +++ b/src/base_cmd.cc @@ -9,8 +9,8 @@ #include "base_cmd.h" -#include "pstd/log.h" #include "praft/praft.h" +#include "pstd/log.h" #include "config.h" #include "pikiwidb.h" diff --git a/src/praft/praft.h b/src/praft/praft.h index 4ebec277..f31e5fdc 100644 --- a/src/praft/praft.h +++ b/src/praft/praft.h @@ -166,8 +166,8 @@ class PRaft : public braft::StateMachine { scoped_refptr snapshot_adaptor_ = nullptr; ClusterCmdContext cluster_cmd_ctx_{this}; // context for cluster join/remove command - std::string group_id_; // group id - int db_id_ = 0; // db_id + std::string group_id_; // group id + int db_id_ = 0; // db_id bool is_node_first_start_up_ = true; };