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

refactor: bubble swarm up and make a module just for it, preprepare libp2p to be used directly from libp2p instance, take off cat alias, make ping into its own module #490

Merged
merged 1 commit into from
Sep 14, 2016

Conversation

daviddias
Copy link
Member

No description provided.

@daviddias daviddias added the status/in-progress In progress label Sep 14, 2016
this.bitswap = bitswap(this)
this.ping = ping(this)
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 should make it more obvious for folks to understand why this pieces are all attached 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.

Note for the future: We should use a more explicit DI than just through an object with all the things. It will make it easier for people that want to have their light ipfs nodes to understand what are the dependencies of each component that IPFS uses

Copy link
Member

Choose a reason for hiding this comment

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

Strongly agree with the Note for the future

@daviddias
Copy link
Member Author

request: @dignifiedquire || @victorbjelkholm for a quick CR :)

Copy link
Member

@dignifiedquire dignifiedquire left a comment

Choose a reason for hiding this comment

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

Great that we are finally doing this :)

const libp2p = require('./ipfs/libp2p')
const files = require('./ipfs/files')
const bitswap = require('./ipfs/bitswap')
const goOnline = require('./modules/go-online')
Copy link
Member

Choose a reason for hiding this comment

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

Why the renaming to modules. I agree ipfs isn't a great name, but modules isn't describing it much better. Maybe commands?

Copy link
Member Author

Choose a reason for hiding this comment

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

what about 'components'?

Copy link
Member Author

Choose a reason for hiding this comment

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

changed to components

…ibp2p to be used directly from libp2p instance, take off cat alias, make ping into its own module
Copy link
Member

@dignifiedquire dignifiedquire left a comment

Choose a reason for hiding this comment

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

LGTM

@daviddias daviddias merged commit 0e99029 into master Sep 14, 2016
@daviddias daviddias deleted the refactor branch September 14, 2016 20:34
@daviddias daviddias removed the status/in-progress In progress label Sep 14, 2016
MicrowaveDev pushed a commit to galtproject/js-ipfs that referenced this pull request May 22, 2020
* fix: wait for one key to be the required key not all

Also, every returns true if there's no items in the list so this was returning a false positive.

* fix: iteratee not updating list
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