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

refactor(p2p): simplify sendMessage #195

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Conversation

cristaloleg
Copy link
Contributor

Overview

sendMessage was doing a bit too much, observability could happen on the caller side, which easier to adapt and extend in the future.

Also, dropping 1 if in processResponses 'cause it's always false. And slice prealloc, looks harmless.

Copy link
Member

@Wondertan Wondertan left a comment

Choose a reason for hiding this comment

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

Good call

@cristaloleg cristaloleg merged commit 5872766 into main Jun 7, 2024
4 checks passed
@cristaloleg cristaloleg deleted the p2p/simplify-sendMessage branch June 7, 2024 17:55
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.

3 participants