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

Add new DHT option to provide custom pb.MessageSender #991

Merged
merged 3 commits into from
Oct 4, 2024

Conversation

cortze
Copy link
Contributor

@cortze cortze commented Oct 2, 2024

Description

The current implementation uses the internal MessagerImplementation always as a unique implementation.

I've been trying to perform multiple operations/lookups in parallel using the same dhtHost, and the current logic of using a single simultaneous stream and request per peer is becoming a bottleneck to resolving each concurrent operation.
(Check as reference #805 )

This PR proposes a new DHT Option that allows users or projects to provide any custom MessageSender.

@cortze cortze requested review from guillaumemichel and a team as code owners October 2, 2024 14:05
@cortze cortze marked this pull request as draft October 2, 2024 14:07
@cortze cortze marked this pull request as ready for review October 2, 2024 20:02
dht_options.go Outdated Show resolved Hide resolved
Copy link
Contributor

@guillaumemichel guillaumemichel left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @cortze!

@guillaumemichel guillaumemichel merged commit 0d075d2 into libp2p:master Oct 4, 2024
9 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.

2 participants