Skip to content

Commit e179e64

Browse files
committed
fix: dispatcher.call broken
request.h wrong symbol
1 parent b59c578 commit e179e64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/dispatcher.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class RpcFunctionDispatcher {
3737
return true;
3838
}
3939

40-
bool isBound(MsgPack::str_t& name) const {
40+
bool isBound(const MsgPack::str_t& name) const {
4141
for (size_t i = 0; i < _count; ++i) {
4242
if (_entries[i].name == name) {
4343
return true;
@@ -46,7 +46,7 @@ class RpcFunctionDispatcher {
4646
return false;
4747
}
4848

49-
bool hasTag(MsgPack::str_t& name, MsgPack::str_t& tag) const {
49+
bool hasTag(const MsgPack::str_t& name, MsgPack::str_t& tag) const {
5050
for (size_t i = 0; i < _count; ++i) {
5151
if (_entries[i].name == name && _entries[i].tag == tag) {
5252
return true;
@@ -55,7 +55,7 @@ class RpcFunctionDispatcher {
5555
return false;
5656
}
5757

58-
bool call(MsgPack::str_t& name, MsgPack::Unpacker& unpacker, MsgPack::Packer& packer) {
58+
bool call(const MsgPack::str_t& name, MsgPack::Unpacker& unpacker, MsgPack::Packer& packer) {
5959
for (size_t i = 0; i < _count; ++i) {
6060
if (_entries[i].name == name) {
6161
return (*_entries[i].fn)(unpacker, packer);

src/request.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,4 @@ class RPCRequest {
8585

8686
};
8787

88-
#endif RPCLITE_REQUEST_H
88+
#endif //RPCLITE_REQUEST_H

0 commit comments

Comments
 (0)