Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

online -> exchange #67

Merged
merged 1 commit into from
Jul 4, 2017
Merged

online -> exchange #67

merged 1 commit into from
Jul 4, 2017

Conversation

pgte
Copy link
Contributor

@pgte pgte commented Jul 4, 2017

dropping the "online" concept, migrating to setting, unsetting and having an exchange instead.

@RichardLitt RichardLitt added the status/in-progress In progress label Jul 4, 2017
@@ -27,7 +27,7 @@ class BlockService {
* @param {Bitswap} bitswap
* @returns {void}
*/
goOnline (bitswap) {
setExchange (bitswap) {
Copy link
Member

Choose a reason for hiding this comment

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

The @param note above should probably change to be {Exchange} exchange rather than hardcoded bitswap.

On another note, we should probably add some lightweight checks that the expected functions exists on the object that gets passed in, to prevent scenarios when you set an exchange then call put and get a error about that the function is undefined, we can fail as early as when setting the exchange, with a more friendly error.

Copy link
Member

Choose a reason for hiding this comment

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

Opened - #68

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.

4 participants