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

feat!: close streams gracefully #458

Merged

Conversation

achingbrain
Copy link
Collaborator

  • Updates all libp2p related deps
  • Switches it-pb-stream for it-length-prefixed-stream since we only use the methods from that module
  • Stream close methods are now async

BREAKING CHANGE: stream close methods are now asyc, requires libp2p@0.46.x or later

- Updates all libp2p related deps
- Switches `it-pb-stream` for `it-length-prefixed-stream` since we only use the methods from that module
- Stream close methods are now async

BREAKING CHANGE: stream close methods are now asyc, requires libp2p@0.46.x or later
@achingbrain achingbrain requested a review from a team as a code owner August 1, 2023 16:59
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 99.15% and no project coverage change.

Comparison is base (83b8e61) 82.30% compared to head (aa987a6) 82.30%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #458   +/-   ##
=======================================
  Coverage   82.30%   82.30%           
=======================================
  Files          48       48           
  Lines       12035    12039    +4     
  Branches     1281     1286    +5     
=======================================
+ Hits         9905     9909    +4     
  Misses       2130     2130           
Files Changed Coverage Δ
src/index.ts 69.97% <97.61%> (-0.04%) ⬇️
src/metrics.ts 18.99% <100.00%> (+0.66%) ⬆️
src/score/peer-score-params.ts 98.21% <100.00%> (ø)
src/score/peer-score-thresholds.ts 100.00% <100.00%> (ø)
src/score/peer-score.ts 85.53% <100.00%> (ø)
src/stream.ts 97.46% <100.00%> (ø)
src/tracer.ts 77.01% <100.00%> (ø)
src/types.ts 94.57% <100.00%> (ø)
src/utils/buildRawMessage.ts 92.21% <100.00%> (ø)
src/utils/msgIdFn.ts 91.66% <100.00%> (ø)
... and 16 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wemeetagain wemeetagain merged commit 3153ebf into ChainSafe:master Aug 3, 2023
9 checks passed
@achingbrain achingbrain deleted the feat/close-streams-gracefully branch August 3, 2023 17:27
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.

None yet

3 participants