Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Replace timeouts. Instead, use Contexts with Deadlines/Timeouts #33

Closed
wants to merge 5 commits into from
Closed

Replace timeouts. Instead, use Contexts with Deadlines/Timeouts #33

wants to merge 5 commits into from

Conversation

btc
Copy link
Contributor

@btc btc commented Sep 2, 2014

@jbenet @whyrusleeping

This PR marks the beginning of some timeout refactoring. If this is a desirable course of action, I will follow up this first commit with commits that completely replace the timeout with the context. At the "leaves" where timeouts are actually handled, I intend to have actors listen on <-ctx.Done() and handle Canceled and DeadlineExceeded errors as appropriate. Let me know what you think.

Also: regarding imports, is there a preferred order for vendored packages versus internal packages?

@whyrusleeping
Copy link
Member

I think this will be good, go ahead and keep doing what youre doing!
As for imports, ive been letting goimports decide the order for me.

@btc
Copy link
Contributor Author

btc commented Sep 14, 2014

With upcoming changes to the network layer, the bitswap refactoring has gone in a somewhat different direction.

Closing this PR. Check #65 for info about the net refactor.

@btc btc closed this Sep 14, 2014
ribasushi pushed a commit that referenced this pull request Jul 4, 2021
ribasushi pushed a commit that referenced this pull request Jul 4, 2021
This was messing with the line numbers. It was reported and fixed in #33 but
that PR isn't formatted.

closes #33

(all credit goes to @jiangsong)
ariescodescream pushed a commit to ariescodescream/go-ipfs that referenced this pull request Oct 23, 2021
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Feb 25, 2022
…ocks

Add strategic provider system experiment flag
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Feb 25, 2022
…der-system-no-blocks

Add strategic provider system experiment flag
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Mar 4, 2022
…der-system-no-blocks

Add strategic provider system experiment flag
laurentsenta pushed a commit to laurentsenta/kubo that referenced this pull request Mar 4, 2022
…der-system-no-blocks

Add strategic provider system experiment flag
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants