Skip to content

Commit

Permalink
Style.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Mar 17, 2024
1 parent 9ae5c65 commit 17fcd35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
6 changes: 2 additions & 4 deletions include/bitcoin/node/sessions/session_outbound.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,19 @@ class BCN_API session_outbound
session_outbound(full_node& node, uint64_t identifier) NOEXCEPT;

void start(network::result_handler&& handler) NOEXCEPT override;

virtual void performance(uint64_t channel, uint64_t speed,
network::result_handler&& handler) NOEXCEPT;

protected:
virtual void handle_event(const code& ec,
chaser::chase event_, chaser::link value) NOEXCEPT;
virtual void split(chaser::channel_t channel) NOEXCEPT;
virtual void do_performance(uint64_t channel, uint64_t speed,
const network::result_handler& handler) NOEXCEPT;

private:
static constexpr size_t minimum_for_standard_deviation = 3;

void do_performance(uint64_t channel, uint64_t speed,
const network::result_handler& handler) NOEXCEPT;

// This is thread safe.
const float allowed_deviation_;

Expand Down
5 changes: 1 addition & 4 deletions src/sessions/session_outbound.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ session_outbound::session_outbound(full_node& node,
{
}

// start
// split
// ----------------------------------------------------------------------------

void session_outbound::start(result_handler&& handler) NOEXCEPT
Expand All @@ -71,9 +71,6 @@ void session_outbound::start(result_handler&& handler) NOEXCEPT
network::session_outbound::start(std::move(handler));
}

// split
// ----------------------------------------------------------------------------

// Event subscriber operates on the network strand (session).
void session_outbound::handle_event(const code&,
chaser::chase event_, chaser::link value) NOEXCEPT
Expand Down

0 comments on commit 17fcd35

Please sign in to comment.