Remove rpc message macro semicolon

Summary:
Remove semicolon.
Semicolon shouldn't be used within macros and should
be explicitly provided by the user of the said macro.

Reviewers: teon.banek

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1321
This commit is contained in:
Dominik Gleich 2018-03-28 15:16:23 +02:00
parent b342b09b49
commit a9dd98f8b9
2 changed files with 11 additions and 11 deletions

View File

@ -54,7 +54,7 @@ struct RequestResponse {
ar &boost::serialization::base_object<communication::rpc::Message>( \
*this); \
} \
};
}
#define RPC_SINGLE_MEMBER_MESSAGE(name, type) \
struct name : public communication::rpc::Message { \
@ -71,4 +71,4 @@ struct RequestResponse {
*this); \
ar &member; \
} \
};
}

View File

@ -7,7 +7,7 @@
namespace tx {
RPC_NO_MEMBER_MESSAGE(BeginReq)
RPC_NO_MEMBER_MESSAGE(BeginReq);
struct TxAndSnapshot {
transaction_id_t tx_id;
Snapshot snapshot;
@ -35,25 +35,25 @@ RPC_SINGLE_MEMBER_MESSAGE(AbortReq, transaction_id_t);
RPC_NO_MEMBER_MESSAGE(AbortRes);
using AbortRpc = communication::rpc::RequestResponse<AbortReq, AbortRes>;
RPC_SINGLE_MEMBER_MESSAGE(SnapshotReq, transaction_id_t)
RPC_SINGLE_MEMBER_MESSAGE(SnapshotRes, Snapshot)
RPC_SINGLE_MEMBER_MESSAGE(SnapshotReq, transaction_id_t);
RPC_SINGLE_MEMBER_MESSAGE(SnapshotRes, Snapshot);
using SnapshotRpc =
communication::rpc::RequestResponse<SnapshotReq, SnapshotRes>;
RPC_SINGLE_MEMBER_MESSAGE(CommandReq, transaction_id_t)
RPC_SINGLE_MEMBER_MESSAGE(CommandRes, command_id_t)
RPC_SINGLE_MEMBER_MESSAGE(CommandReq, transaction_id_t);
RPC_SINGLE_MEMBER_MESSAGE(CommandRes, command_id_t);
using CommandRpc = communication::rpc::RequestResponse<CommandReq, CommandRes>;
RPC_NO_MEMBER_MESSAGE(GcSnapshotReq)
RPC_NO_MEMBER_MESSAGE(GcSnapshotReq);
using GcSnapshotRpc =
communication::rpc::RequestResponse<GcSnapshotReq, SnapshotRes>;
RPC_SINGLE_MEMBER_MESSAGE(ClogInfoReq, transaction_id_t)
RPC_SINGLE_MEMBER_MESSAGE(ClogInfoRes, CommitLog::Info)
RPC_SINGLE_MEMBER_MESSAGE(ClogInfoReq, transaction_id_t);
RPC_SINGLE_MEMBER_MESSAGE(ClogInfoRes, CommitLog::Info);
using ClogInfoRpc =
communication::rpc::RequestResponse<ClogInfoReq, ClogInfoRes>;
RPC_NO_MEMBER_MESSAGE(ActiveTransactionsReq)
RPC_NO_MEMBER_MESSAGE(ActiveTransactionsReq);
using ActiveTransactionsRpc =
communication::rpc::RequestResponse<ActiveTransactionsReq, SnapshotRes>;