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

Marco/with after func #763

Merged
merged 3 commits into from
Dec 18, 2024
Merged

Conversation

gammazero
Copy link
Contributor

@gammazero gammazero commented Dec 17, 2024

refactor: if the conn has a context, use context.AfterFunc for cleanup

Copy link

codecov bot commented Dec 17, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 60.52%. Comparing base (ee0082a) to head (48971b9).
Report is 1 commits behind head on marco/drop-stream-reference.

Files with missing lines Patch % Lines
bitswap/network/ipfs_impl.go 80.00% 3 Missing and 1 partial ⚠️

Impacted file tree graph

@@                       Coverage Diff                       @@
##           marco/drop-stream-reference     #763      +/-   ##
===============================================================
+ Coverage                        60.48%   60.52%   +0.03%     
===============================================================
  Files                              245      245              
  Lines                            31113    31126      +13     
===============================================================
+ Hits                             18819    18838      +19     
+ Misses                           10622    10618       -4     
+ Partials                          1672     1670       -2     
Files with missing lines Coverage Δ
bitswap/network/ipfs_impl.go 79.12% <80.00%> (-1.51%) ⬇️

... and 14 files with indirect coverage changes

@MarcoPolo MarcoPolo force-pushed the marco/with-AfterFunc branch from 064bfa4 to f7d0ea7 Compare December 18, 2024 17:11
@gammazero gammazero changed the base branch from main to marco/drop-stream-reference December 18, 2024 17:26
@gammazero gammazero marked this pull request as ready for review December 18, 2024 17:27
@gammazero gammazero requested a review from a team as a code owner December 18, 2024 17:27
@MarcoPolo
Copy link
Contributor

Note that go-libp2p doesn't yet support the conn context. I'm thinking it'll come in the next release. I just didn't want to rush it in here.

@gammazero gammazero merged commit cc5f567 into marco/drop-stream-reference Dec 18, 2024
13 checks passed
@gammazero gammazero deleted the marco/with-AfterFunc branch December 18, 2024 20:45
gammazero added a commit that referenced this pull request Dec 18, 2024
refactor: if the conn has a context, use context.AfterFunc for cleanup
---------

Co-authored-by: Marco Munizaga <git@marcopolo.io>
gammazero added a commit that referenced this pull request Dec 18, 2024
refactor: if the conn has a context, use context.AfterFunc for cleanup
---------

Co-authored-by: Marco Munizaga <git@marcopolo.io>
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