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

refactor(GetBlocks): Merge session/non-session #64

Merged
merged 1 commit into from
Feb 5, 2019

Conversation

hannahhoward
Copy link
Contributor

Goals

Simplify Bitswap!

Implementation

  • Just have non-session GetBlocks make a temporary session and use that to get blocks
  • Remove all the code you can remove as a result

For Discussion

This is PR'd against enhance-session-provider because it's neccesary to make this all work.
The order is:
feat/stabilize-tests ->
feat/enhance-session-provider ->
feat->merge-get-blocks

fix #52 fix #49

@ghost ghost assigned hannahhoward Jan 26, 2019
@ghost ghost added the status/in-progress In progress label Jan 26, 2019
@hannahhoward hannahhoward changed the title WIP: refactor(GetBlocks): Merge session/non-session refactor(GetBlocks): Merge session/non-session Jan 26, 2019
Copy link
Contributor

@michaelavila michaelavila left a comment

Choose a reason for hiding this comment

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

I realize there's the other PR (#60) to get through, but barring anything there this looks straightforward and 👍

Make Bitswap GetBlocks just create a temporary session and use that code

fix #52 fix #49
@hannahhoward hannahhoward changed the base branch from feat/enhance-session-provider to master February 5, 2019 23:53
@hannahhoward hannahhoward merged commit 5b807cb into master Feb 5, 2019
@ghost ghost removed the status/in-progress In progress label Feb 5, 2019
Jorropo pushed a commit to Jorropo/go-libipfs that referenced this pull request Jan 26, 2023
refactor(GetBlocks): Merge session/non-session

This commit was moved from ipfs/go-bitswap@5b807cb
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.

Deduplicate provider logic Deduplicate Bitswap.GetBlocks with Session.GetBlocks
2 participants