Skip to content

Commit

Permalink
[fix] Fix in CoindProtocol for Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Neels99 committed Feb 17, 2024
1 parent 9c9076b commit 42e064c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcoind/p2p/coind_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
class CoindProtocol : public Protocol<CoindProtocol>, public CoindProtocolData, ProtocolPinger
{
public:
CoindProtocol(boost::asio::io_context* _context, Socket* _socket,
HandlerManagerPtr<CoindProtocol> _handler_manager) : Protocol<CoindProtocol>("Coind", _socket, std::move(_handler_manager)),
ProtocolPinger(_context, 30, [this] { out_time_ping(); },
CoindProtocol(boost::asio::io_context* context_, Socket* socket_,
HandlerManagerPtr handler_manager_) : Protocol<CoindProtocol>("Coind", socket_, std::move(handler_manager_)),
ProtocolPinger(context_, 30, [this] { out_time_ping(); },
[](){return 20; /*TODO: return random.expovariate(1/100)*/}, [&](){ send_ping(); })
{
send_version();
Expand Down

0 comments on commit 42e064c

Please sign in to comment.