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

docs: add comments and improve yamux readability #1006

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

lchenut
Copy link
Collaborator

@lchenut lchenut commented Jan 9, 2024

There was a clear lack of comments on Yamux. This PR should solve this problem.

Copy link

codecov bot commented Jan 9, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (e3c967a) 83.14% compared to head (51eb8fe) 83.16%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##           unstable    #1006      +/-   ##
============================================
+ Coverage     83.14%   83.16%   +0.01%     
============================================
  Files            91       91              
  Lines         15335    15340       +5     
============================================
+ Hits          12750    12757       +7     
+ Misses         2585     2583       -2     
Files Coverage Δ
libp2p/muxers/yamux/yamux.nim 90.67% <87.50%> (+0.72%) ⬆️

if channel.lengthSendQueueWithLimit() > channel.maxSendQueueSize:
debug "channel send queue too big, resetting", maxSendQueueSize=channel.maxSendQueueSize,
trace "channel send queue too big, resetting", maxSendQueueSize=channel.maxSendQueueSize,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would leave this as debug

@lchenut lchenut marked this pull request as ready for review January 30, 2024 15:28
@lchenut lchenut merged commit eb0890c into unstable Feb 2, 2024
11 checks passed
@lchenut lchenut deleted the yamux-readability branch February 2, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants