Skip to content
This repository was 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
Stebalien merged 1 commit intomasterfrom
fix/abort-on-context-cancel
Jan 23, 2019
Merged

contexts: make sure to abort when a context is canceled#58
Stebalien merged 1 commit intomasterfrom
fix/abort-on-context-cancel

Conversation

@Stebalien
Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

@Stebalien
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Definitely fair! LGTM

Copy link
Copy Markdown
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants