Remove open() from gun rpc
Can cause memory leaks, load() can be used instead.
This commit is contained in:
parent
4519ebabf8
commit
91d4017f47
1 changed files with 1 additions and 2 deletions
|
|
@ -3049,7 +3049,7 @@ module.exports = async (
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @typedef {object} HandleGunFetchParams
|
* @typedef {object} HandleGunFetchParams
|
||||||
* @prop {'once'|'load'|'open'} type
|
* @prop {'once'|'load'} type
|
||||||
* @prop {boolean} startFromUserGraph
|
* @prop {boolean} startFromUserGraph
|
||||||
* @prop {string} path
|
* @prop {string} path
|
||||||
* @prop {string=} publicKey
|
* @prop {string=} publicKey
|
||||||
|
|
@ -3093,7 +3093,6 @@ module.exports = async (
|
||||||
|
|
||||||
if (type === 'once') node.once(listener)
|
if (type === 'once') node.once(listener)
|
||||||
if (type === 'load') node.load(listener)
|
if (type === 'load') node.load(listener)
|
||||||
if (type === 'open') node.open(listener)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue