Skip to content

Commit

Permalink
Consistency with proto dir.
Browse files Browse the repository at this point in the history
  • Loading branch information
szmyd committed Nov 9, 2023
1 parent e0658d4 commit 0efcd4b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/flatb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11)

flatbuffers_generate_headers(
TARGET fbschemas
SCHEMAS "fb-schema.fbs"
SCHEMAS "raft_types.fbs" "messaging_service.fbs"
FLAGS "--grpc" "--gen-object-api" "--scoped-enums" "--gen-name-strings" "--cpp-std=c++17" "--cpp-static-reflection"
)
add_library(${PROJECT_NAME}-fb OBJECT)
Expand Down
8 changes: 8 additions & 0 deletions src/flatb/messaging_service.fbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include "raft_types.fbs";

namespace nuraft_mesg;

rpc_service Messaging {
RaftStep(Request):Response;
}

4 changes: 0 additions & 4 deletions src/flatb/fb-schema.fbs → src/flatb/raft_types.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,3 @@ table Response {
result_code:ResultCode;
context:[ubyte];
}

rpc_service Messaging {
RaftStep(Request):Response;
}

0 comments on commit 0efcd4b

Please sign in to comment.