lichao
2021-06-01 e7555f04c826e65e59b7e6ff7f3858b7d94f5b73
trivial.
2个文件已修改
13 ■■■■■ 已修改文件
box/center.cpp 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
box/node_center.h 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
box/center.cpp
@@ -45,18 +45,6 @@
    }
}
Handler Combine(const Handler &h1, const Handler &h2)
{
    return [h1, h2](ShmSocket &socket, bhome_msg::MsgI &msg, bhome_msg::BHMsgHead &head) {
        return h1(socket, msg, head) || h2(socket, msg, head);
    };
}
template <class... H>
Handler Combine(const Handler &h0, const Handler &h1, const Handler &h2, const H &...rest)
{
    return Combine(Combine(h0, h1), h2, rest...);
}
#define CASE_ON_MSG_TYPE(MsgTag)                                                         \
    case kMsgType##MsgTag:                                                               \
        Dispatch<Msg##MsgTag>(                                                           \
box/node_center.h
@@ -48,7 +48,6 @@
class MsgRecords
{
    typedef int64_t MsgId;
    typedef int64_t Offset;
public:
    void RecordMsg(const MsgI &msg) { msgs_.emplace(msg.id(), msg); }