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

Identify agent version #178

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Identify agent version #178

wants to merge 2 commits into from

Conversation

turuslan
Copy link
Contributor

Make identify agent version configurable

Signed-off-by: turuslan <[email protected]>
Signed-off-by: turuslan <[email protected]>
@@ -35,6 +39,8 @@ namespace libp2p::injector {
di::bind<protocol::SchedulerConfig>.template to(protocol::SchedulerConfig {}),
di::bind<protocol::Scheduler>.template to<protocol::AsioScheduler>(),

di::bind<Libp2pClientVersion>.template to(Libp2pClientVersion{"libp2p"}),
Copy link
Member

Choose a reason for hiding this comment

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

How about 'cpp-libp2p'? There are exist more then one libp2p implementations

@@ -175,7 +175,9 @@ namespace libp2p::protocol::gossip {
MessageId msg_id = create_message_id_(msg->from, msg->seq_no, msg->data);

[[maybe_unused]] bool inserted = msg_cache_.insert(msg, msg_id);
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
[[maybe_unused]] bool inserted = msg_cache_.insert(msg, msg_id);
bool inserted = msg_cache_.insert(msg, msg_id);

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.

2 participants