Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

contexts: make sure to abort when a context is canceled #58

Merged
merged 1 commit into from
Jan 23, 2019

Conversation

Stebalien
Copy link
Member

Also, buffer single-use channels we may walk away from. This was showing up (rarely) in a go-ipfs test (test/integration.Test1KBInstantaneous).

Also, buffer single-use channels we may walk away from. This was showing
up (rarely) in a go-ipfs test.
@ghost ghost assigned Stebalien Jan 22, 2019
@ghost ghost added the status/in-progress In progress label Jan 22, 2019
@Stebalien
Copy link
Member Author

(for the record, this is one of the most annoying parts of go...)

@Stebalien
Copy link
Member Author

Stebalien commented Jan 22, 2019

Ideally, this would get a test or two but this isn't really a critical code path. It only shows up on shutdown (where we usually don't wait around anyways). However, if someone has time...

@hannahhoward
Copy link
Contributor

Definitely fair! LGTM

Copy link
Contributor

@hannahhoward hannahhoward left a comment

Choose a reason for hiding this comment

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

LGTM, shoulda caught these!

@Stebalien Stebalien merged commit f016167 into master Jan 23, 2019
@ghost ghost removed the status/in-progress In progress label Jan 23, 2019
@Stebalien Stebalien deleted the fix/abort-on-context-cancel branch January 23, 2019 11:56
Jorropo pushed a commit to Jorropo/go-libipfs that referenced this pull request Jan 26, 2023
…cancel

contexts: make sure to abort when a context is canceled

This commit was moved from ipfs/go-bitswap@f016167
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants