Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StreamProtocols are passed to Identify #268

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

ErakhtinB
Copy link
Contributor

No description provided.


#include <libp2p/peer/stream_protocols.hpp>

namespace {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
namespace {
namespace libp2p::protocol {

@@ -80,7 +80,9 @@ class IdentifyTest : public testing::Test {

id_msg_processor_ = std::make_shared<IdentifyMessageProcessor>(
host_, conn_manager_, id_manager_, key_marshaller_);
identify_ = std::make_shared<Identify>(host_, id_msg_processor_, bus_);
IdentifyConfig config;
config.protocols = {kIdentifyProto};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May use default

Suggested change
config.protocols = {kIdentifyProto};

Comment on lines +13 to +15
} // namespace

namespace libp2p::protocol {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
} // namespace
namespace libp2p::protocol {

The change completes the previous

@kamilsa kamilsa merged commit 859a249 into libp2p:master Oct 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants