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

runtime specific things - bring libp2p bundles here #895

Merged
merged 3 commits into from
Jul 4, 2017

Conversation

daviddias
Copy link
Member

@daviddias daviddias commented Jul 3, 2017

@@ -1,6 +1,6 @@
'use strict'

const Node = require('libp2p-ipfs-nodejs')
const Node = require('../runtime/libp2p-nodejs')
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps add a comment before explaining that this will be switched to file x in the browser?

}
}

class Node extends libp2p {
Copy link
Contributor

Choose a reason for hiding this comment

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

This file has a lot in common with it's browser version. Perhaps we could reduce this to a declarative config and not need to declare a class here?

Copy link
Member Author

Choose a reason for hiding this comment

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

True, at the same time it serves the purpose of being an awesome template for others to c&p

@@ -32,6 +32,7 @@ module.exports = (ctl) => {
ctl.bootstrap.add({ default: true }, (err, res) => {
expect(err).to.not.exist()
peers = res.Peers
console.log(res)
Copy link
Contributor

Choose a reason for hiding this comment

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

letfover console.log?

Copy link
Contributor

@pgte pgte left a comment

Choose a reason for hiding this comment

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

LGTM overall, but I would still to try to reduce node-browser similar code (see comments).

@daviddias daviddias merged commit 0afdba1 into master Jul 4, 2017
@daviddias daviddias deleted the feat/libp2p-bundles branch July 4, 2017 10:47
@daviddias daviddias removed the status/in-progress In progress label Jul 4, 2017
dryajov pushed a commit that referenced this pull request Sep 1, 2017
* feat: move runtime dependent configs (repo and config) to runtime folder
* feat: bring libp2p bundles to this repo
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