diff options
author | Determinant <[email protected]> | 2018-07-19 14:43:35 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2018-07-19 14:43:35 -0400 |
commit | 95316118206aeed718ae6260ef9b5a1a4a6dacd8 (patch) | |
tree | c0b2df4c8f020bb076c276069da066a4f43c32f8 /src/hotstuff_client.cpp | |
parent | 9e745354fe10f31b829f0c02a2aa464f391ffd19 (diff) |
fix mem leak
Diffstat (limited to 'src/hotstuff_client.cpp')
-rw-r--r-- | src/hotstuff_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hotstuff_client.cpp b/src/hotstuff_client.cpp index f9bfb94..bee60c3 100644 --- a/src/hotstuff_client.cpp +++ b/src/hotstuff_client.cpp @@ -39,7 +39,7 @@ struct Request { std::unordered_map<int, salticidae::RingBuffer> buffers; std::unordered_map<const uint256_t, Request> waiting; -MsgNetwork<MsgClient> mn(eb, 10, 0, 2, 4096); +MsgNetwork<MsgClient> mn(eb, 10, 10, 4096); std::unordered_map<ReplicaID, MsgNetwork<MsgClient>::conn_t> conns; std::vector<NetAddr> replicas; @@ -48,7 +48,7 @@ void set_proposer(ReplicaID rid) { proposer = rid; auto it = conns.find(rid); if (it == conns.end()) - conns.insert(std::make_pair(rid, mn.create_conn(replicas[rid]))); + conns.insert(std::make_pair(rid, mn.connect(replicas[rid]))); } void try_send() { |