-
Notifications
You must be signed in to change notification settings - Fork 869
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
feat: enable pubsub via settings menu #1735
Conversation
@lidel, can you please have a look as you're able? |
Without this the setting won't be applied. License: MIT Signed-off-by: Marcin Rataj <[email protected]>
ipfsd.stop() did not wait for proper shutdown, which caused things to go racy during situations where we restart node. When unlucky, I ended up with two go-ipfs processses. Bumping version to include fix from ipfs/js-ipfsd-ctl#554 License: MIT Signed-off-by: Marcin Rataj <[email protected]>
License: MIT Signed-off-by: Marcin Rataj <[email protected]>
already logged in ./src/utils/create-toggler.js, so here we only log statud when app starts and that is all License: MIT Signed-off-by: Marcin Rataj <[email protected]>
it is still an experiment in go-ipfs: https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#ipfs-pubsub License: MIT Signed-off-by: Marcin Rataj <[email protected]>
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.
@andrew looks and works great! ❤️
- Moved PubSub toggle to experiments, because it is marked as one in go-ipfs docs:
https://github.com/ipfs/go-ipfs/blob/master/docs/experimental-features.md#ipfs-pubsub - Fixed the duplicated message in 47f83cb
- We have to restart go-ipfs to have the flagg applied, so I've added code that triggers restart via
ipcMain.emit('ipfsConfigChanged')
- While doing that found a bug in logic responsible for restarting the node on config changes. Took me a while to realize where the duplicated process comes from.
- Ended up bumping
ipfsd-ctl
, as the bug seems to be fixed in fix: kill disposable nodes on stop and simplify started status js-ipfsd-ctl#554 - 👉 It works as expected on Linux, mind testing on macOS before I merge this?
- Toggling Enable PubSub should restart the node now.
- Standalone Restart action in the main menu should also work
What if we enabled pubsub by default 🙀 💞 |
@olizilla if we do it here, we also should enable it in Brave (:lion: → 🙀) I'd rather wait for ipfs/kubo#5383 and ipfs/kubo#6621 😅 |
Wow, thanks for the updates @lidel, I was only expecting some pointers, not just for you to finish the pr! Tested on macOS, working as expected, restarting correctly and such 🎉 |
License: MIT Signed-off-by: Marcin Rataj <[email protected]>
@andrew I would give pointers but then found the unrelated bug, and it escalated 😅 |
Retested on macOS, still looking good 👍 |
* feat: disable/enable gc via settings menu Closes #1647 Very similar approach to #1735 * fix: ensure checkbox follows cli flag config - setting default state to on for new and pre-existing config - remove keysize (not needed since go-ipfs 0.7.0 uses ED25519 keys by default) Co-authored-by: Marcin Rataj <[email protected]>
* feat: enable ipns over pubsub via settings menu Part of #1647 Very similar approach to #1735 * refactor: move pubsub experiments to exp. section making it easier to find if someone edits config by hand Co-authored-by: Marcin Rataj <[email protected]>
Part of #1647
Adds a menu preference option to enable pubsub which adds a flag to the ipfsd-ctl options for startup.
Question: should this prompt a restart, given that the setting won't take effect until ipfs has been been restarted?
Bug: I'm getting the enabled/disabled message logged twice when clicking on the menu item, not quite sure why :