Remove open() from gun rpc

Can cause memory leaks, load() can be used instead.
This commit is contained in:
Daniel Lugo 2021-04-22 16:08:14 -04:00
parent 4519ebabf8
commit 91d4017f47

View file

@ -3049,7 +3049,7 @@ module.exports = async (
/**
* @typedef {object} HandleGunFetchParams
* @prop {'once'|'load'|'open'} type
* @prop {'once'|'load'} type
* @prop {boolean} startFromUserGraph
* @prop {string} path
* @prop {string=} publicKey
@ -3093,7 +3093,6 @@ module.exports = async (
if (type === 'once') node.once(listener)
if (type === 'load') node.load(listener)
if (type === 'open') node.open(listener)
})
})
}