From 38207051ebf23a3397b6e9b5f80364a560d34589 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Wed, 24 Jul 2024 14:33:44 -0400 Subject: [PATCH] Move create_key() to protected. --- include/bitcoin/network/sessions/session.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/bitcoin/network/sessions/session.hpp b/include/bitcoin/network/sessions/session.hpp index 364744f7c..74fecbc2b 100644 --- a/include/bitcoin/network/sessions/session.hpp +++ b/include/bitcoin/network/sessions/session.hpp @@ -190,6 +190,7 @@ class BCT_API session /// Subscribe to session stop notification, obtain unsubscribe key. virtual object_key subscribe_stop(notifier&& handler) NOEXCEPT; virtual bool notify(object_key key) NOEXCEPT; + virtual object_key create_key() NOEXCEPT; /// Remove self from network close subscription (for session early stop). virtual void unsubscribe_close() NOEXCEPT; @@ -232,8 +233,6 @@ class BCT_API session asio::strand& strand() NOEXCEPT; private: - object_key create_key() NOEXCEPT; - void handle_channel_start(const code& ec, const channel::ptr& channel, const result_handler& started, const result_handler& stopped) NOEXCEPT;