Skip to content

Commit

Permalink
Move strand() to protected.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Feb 9, 2024
1 parent e4375b2 commit 4867568
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/bitcoin/network/sessions/session.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,10 @@ class BCT_API session
/// Number of outbound connected channels (including manual).
virtual size_t outbound_channel_count() const NOEXCEPT;

private:
/// The network strand.
asio::strand& strand() NOEXCEPT;

private:
object_key create_key() NOEXCEPT;

void handle_channel_start(const code& ec, const channel::ptr& channel,
Expand Down
1 change: 1 addition & 0 deletions src/sessions/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,7 @@ void session::save(const address_cptr& message,
network_.save(message, std::move(handler));
}

// protected
asio::strand& session::strand() NOEXCEPT
{
return network_.strand();
Expand Down

0 comments on commit 4867568

Please sign in to comment.