Skip to content

Commit 461a3aa

Browse files
committed
fix: remaining msg_id with int type
1 parent 8be723e commit 461a3aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/decoder.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class RpcDecoder {
5757
}
5858

5959
template<typename RType>
60-
bool get_response(const int msg_id, RType& result, RpcError& error) {
60+
bool get_response(const uint32_t msg_id, RType& result, RpcError& error) {
6161

6262
if (!packet_incoming() || _packet_type!=RESP_MSG) return false;
6363

@@ -111,7 +111,7 @@ class RpcDecoder {
111111
};
112112

113113
int msg_type;
114-
int msg_id;
114+
uint32_t msg_id;
115115
MsgPack::str_t method;
116116
MsgPack::arr_size_t req_size;
117117

0 commit comments

Comments
 (0)