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

Bitswap Complete (1.0.0 + 1.1.0) #45

Closed
wants to merge 1 commit into from
Closed

Bitswap Complete (1.0.0 + 1.1.0) #45

wants to merge 1 commit into from

Conversation

daviddias
Copy link
Member

@daviddias daviddias commented Oct 20, 2016

Nothing to see here yet, just created to keep tabs and references in what needs to be done

@daviddias daviddias added the status/in-progress In progress label Oct 20, 2016

module.exports = Bitswap

function noop () {}
Copy link
Member

Choose a reason for hiding this comment

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

didn't we agree that we would stop doing style refactorings that are based on personal preferences?

Copy link
Member Author

Choose a reason for hiding this comment

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

I might be wrong, but I don't see this as a style preference. Seeing cb = cb || noop is more simpler than cb = cb || (() => {}) everytime I want a noop.

I can revert back though.

As I said at the top of the PR: "Nothing to see here", which was meant to save time from CR, this is far from complete (note that I didn't add the "needs review" label).

addBlock (block) {
this.blocks.set(mh.toB58String(block.key), block)
addBlock (block, hashAlg) {
const key = block.key(hashAlg)
Copy link
Member

Choose a reason for hiding this comment

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

this is going to be async with the new crypto. so might be better to base it on top of that

Copy link
Member Author

Choose a reason for hiding this comment

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

It would be incredibly hard to work on top of a PR of PRs and do PR of PRs. One giant at a time, that is why we have git :)

const mainBlob = new Store(id)
const blocksBlob = new Store(`${id}/blocks`)
const mainBlob = new Store(id + Math.random())
const blocksBlob = new Store(`${id}/blocks` + Math.random())
Copy link
Member

Choose a reason for hiding this comment

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

why?

Copy link
Member Author

Choose a reason for hiding this comment

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

This was due to ipfs/js-ipfs#528 (comment)

@@ -46,7 +46,7 @@ module.exports = (repo) => {
})

describe('receive message', () => {
it('simple block message', (done) => {
it.only('simple block message', (done) => {
Copy link
Member

Choose a reason for hiding this comment

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

TODO: remove before merge

@dignifiedquire
Copy link
Member

nothing to see here

...someone needs to pay better attention to headlines *cough Just ignore me till you are ready :)

@daviddias daviddias self-assigned this Oct 30, 2016
@daviddias daviddias changed the title Awesome IPLD Endeavour Bitswap Complete (1.0.0 + 1.1.0) Oct 30, 2016
@daviddias daviddias added status/ready Ready to be worked and removed status/in-progress In progress labels Dec 5, 2016
@daviddias daviddias closed this Dec 7, 2016
@daviddias daviddias deleted the awesome-ipld branch December 7, 2016 02:42
@daviddias daviddias removed the status/ready Ready to be worked label Dec 7, 2016
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