diff options
author | Determinant <[email protected]> | 2018-11-18 00:51:19 -0500 |
---|---|---|
committer | Determinant <[email protected]> | 2018-11-18 00:51:19 -0500 |
commit | 39f6d6ac46d440aa68e7b1a2f2e4eb629356af34 (patch) | |
tree | 164e42004f26ce3295d3cbb8a5870039f4c4165b /test/bench_network.cpp | |
parent | e12e559e85b0c2615fb550cc11560350517efca6 (diff) |
fix bugs
Diffstat (limited to 'test/bench_network.cpp')
-rw-r--r-- | test/bench_network.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bench_network.cpp b/test/bench_network.cpp index d63d377..61307e1 100644 --- a/test/bench_network.cpp +++ b/test/bench_network.cpp @@ -111,7 +111,7 @@ struct MyNet: public MsgNetworkByteOp { /* send the first message through this connection */ net->ev_period_send = Event(net->ec, -1, [net, conn = self()](int, short) { - net->send_msg(MsgBytes(256), *conn); + net->send_msg(MsgBytes(256), conn); net->ev_period_send.add_with_timeout(0, 0); }); net->ev_period_send.add_with_timeout(0, 0); @@ -134,7 +134,7 @@ struct MyNet: public MsgNetworkByteOp { return new Conn(); } - void on_receive_bytes(MsgBytes &&msg, Conn &conn) { + void on_receive_bytes(MsgBytes &&msg, const conn_t &conn) { nrecv++; } }; |