Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

chore: update pubsub #108

Merged
merged 11 commits into from
Aug 25, 2020
Merged

chore: update pubsub #108

merged 11 commits into from
Aug 25, 2020

Conversation

vasco-santos
Copy link
Member

@vasco-santos vasco-santos commented Aug 6, 2020

This PR updates to libp2p-pubsub v0.6.x

I could not push into @wemeetagain #107 PR, so I got its changes in here, as well as tests updated and now using libp2p in the constructor.
The interface pubsub work is now being used here

Needs:

@vasco-santos vasco-santos added the status/blocked Unable to be worked further until needs are met label Aug 6, 2020
@vasco-santos vasco-santos marked this pull request as draft August 6, 2020 07:34
BREAKING CHANGE: subscription event renamed  to pubsub:subscription-change
@vasco-santos vasco-santos force-pushed the chore/update-pubsub branch 2 times, most recently from a95d835 to db84f14 Compare August 19, 2020 16:25
Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

Just some minor things, overall looks good pending interface updates.

return peers
}

// TODO: use ipfs-utils
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you want to do this before merging?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, cool it is changed

src/index.js Outdated
@@ -5,35 +5,11 @@ const debugName = 'libp2p:floodsub'
const log = debug(debugName)
log.error = debug(`${debugName}:error`)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should use this.log instead of creating a new logger

Copy link
Contributor

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

lgtm pending interface release

@vasco-santos vasco-santos removed the status/blocked Unable to be worked further until needs are met label Aug 25, 2020
@vasco-santos vasco-santos marked this pull request as ready for review August 25, 2020 11:43
@vasco-santos vasco-santos merged commit 67a6376 into master Aug 25, 2020
@vasco-santos vasco-santos deleted the chore/update-pubsub branch August 25, 2020 11:44
@vasco-santos vasco-santos restored the chore/update-pubsub branch August 25, 2020 12:06
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