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

feat(swarm): interface-ipfs-core swarm compatibility #486

Merged
merged 1 commit into from
Sep 13, 2016

Conversation

daviddias
Copy link
Member

@daviddias daviddias commented Sep 13, 2016

This contributes to #439

Only missing:

  • implement swarm.addrs

@daviddias daviddias added the status/in-progress In progress label Sep 13, 2016
@daviddias daviddias force-pushed the feat/swarm-iic branch 2 times, most recently from 09329f3 to 3873a45 Compare September 13, 2016 16:37
// TODO this should only print the addr we are using
mas.push(ma)
})
})
Copy link
Member

Choose a reason for hiding this comment

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

Please map, instead of forEach and push

Copy link
Member Author

Choose a reason for hiding this comment

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

There is two forEach, it would require a flat step then

Copy link
Member

Choose a reason for hiding this comment

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

Then use _.flatten or pull.flatten :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Is requiring a dependency to remove 0 lines (because the extra map to flatten step would take the exact same lines) worth it?

Copy link
Member

Choose a reason for hiding this comment

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

I think so, because it makes the code much easier to read and understand

@daviddias daviddias merged commit 5d68188 into master Sep 13, 2016
@daviddias daviddias removed the status/in-progress In progress label Sep 13, 2016
@dignifiedquire
Copy link
Member

not a big fan of merging things that are still being discussed :/

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