Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 01_Basics.md #146

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update 01_Basics.md #146

wants to merge 1 commit into from

Conversation

sgnix
Copy link

@sgnix sgnix commented Jul 1, 2021

Update outdated name of pubsub option

Update outdated name of pubsub option
Copy link
Contributor

@CSDUMMI CSDUMMI left a comment

Choose a reason for hiding this comment

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

This follows the documentation of the options.EXPERIMENTAL.

@aphelionz
Copy link
Member

ipnsPubsub is a different thing than just regular pubsub and I think regular pubsub is now enabled by default. Can anybody confirm?

@CSDUMMI
Copy link
Contributor

CSDUMMI commented Sep 15, 2021

Yes. See the CHANGELOG.md 0.38.0-rc.0.

I think that in this case the entire thing should be removed.

@@ -120,7 +120,7 @@ class NewPiecePlease {
this.node = await this.Ipfs.create({
preload: { enabled: false },
repo: './ipfs',
EXPERIMENTAL: { pubsub: true },
EXPERIMENTAL: { ipnsPubsub: true },
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest removing this line, if pubsub is now enabled by default.

@@ -165,7 +165,7 @@ for now, we include this line to disable them.
- `repo: './ipfs'` designates the path of the repo in Node.js only. In the browser, you can actually remove this line. The
default setting is a folder called `.jsipfs` in your home directory. You will see why we choose this specific location for the
folder later.
- `EXPERIMENTAL: { pubsub: true }` enables [IPFS pubsub](https://blog.ipfs.io/25-pubsub/), which is a method of communicating between nodes and **is required for OrbitDB usage**, despite whether or not we are connected to other peers.
- `EXPERIMENTAL: { ipnsPubsub: true }` enables [IPFS pubsub](https://blog.ipfs.io/25-pubsub/), which is a method of communicating between nodes and **is required for OrbitDB usage**, despite whether or not we are connected to other peers.
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps this could be removed and a note added somewhere else, about how OrbitDB uses PubSub.
(Maybe in the Introduction).

@CSDUMMI
Copy link
Contributor

CSDUMMI commented Sep 17, 2021

Is the offline disabling pubsub?

@aphelionz
Copy link
Member

Is the offline disabling pubsub?

I'm going to assume so because swarm peers is disabled if in offline mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants