-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Conversation
0a2d8ca
to
3c90cbf
Compare
@diasdavid regarding the weekly sync question: js-datastore-pubsub is used as middleware for pubsub to be used as a datastore with TieredDatastore. This way, we can combine multiple We provide to the All in all, Moreover, I hope to have been clear with this explanation. Let me know if you agree, or if you have any other direction that this sould go. |
3c90cbf
to
61a44fb
Compare
This is a really nice approach 👍 |
61a44fb
to
0627b06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note ipfs/js-datastore-pubsub#5
84d851c
to
ba944df
Compare
aac7a52
to
83fee00
Compare
83fee00
to
35e6295
Compare
196dd4c
to
03c24e1
Compare
03c24e1
to
7f07aa2
Compare
@@ -2,11 +2,13 @@ | |||
|
|||
const series = require('async/series') | |||
const Bitswap = require('ipfs-bitswap') | |||
const get = require('lodash/get') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use smaller package
https://bundlephobia.com/[email protected]
vs
https://bundlephobia.com/[email protected]
const get = require('lodash/get') | |
const get = require('dlv') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks! Will add dlv
to package.json
as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm fine with using dlv
over loadash.get
but all other occurances of lodash.get
need to be replaced as well otherwise we're just adding more to our bundle.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you agree, I can create other PR with all those occurrences changed to dlv
.
src/core/config.js
Outdated
@@ -28,6 +28,7 @@ const schema = Joi.object().keys({ | |||
}).allow(null), | |||
EXPERIMENTAL: Joi.object().keys({ | |||
pubsub: Joi.boolean(), | |||
namesysPubsub: Joi.boolean(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just pick one and use it everywhere
fb48ba9
to
6f83aa1
Compare
Co-Authored-By: vasco-santos <[email protected]>
6f83aa1
to
b2755a0
Compare
@@ -48,7 +49,10 @@ class OfflineDatastore { | |||
return callback(errcode(new Error(errMsg), 'ERR_GENERATING_ROUTING_KEY')) | |||
} | |||
|
|||
this._repo.datastore.put(routingKey, value, callback) | |||
// Marshal to libp2p record as the DHT does | |||
let record = new Record(key, value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can be const
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we open an issue in aegir
to target this in the lint
?
if (!this._options.EXPERIMENTAL.pubsub) { | ||
this.log('EXPERIMENTAL pubsub is enabled to use IPNS pubsub') | ||
this._options.EXPERIMENTAL.pubsub = true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does go-ipfs do IPNS over PubSub as an experimental flag? Why not just one flag that enables all of PubSub
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, go-ipfs
uses an experimental flag for IPNS over Pubsub: --enable-namesys-pubsub
is the CLI flag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Experimental features on Alpha software", how much more bleeding edge can you go 😅
Thanks! Updated the |
This PR addresses the
IPNS over Pubsub
feature.It needs the following PRs:
interface-ipfs-core
tests foripns-pubsub
(afterinterface-ipfs-core
new release)Unblocks: