Delete createDnodeRemoteGetter.js (#8523)

feature/default_network_editable
Whymarrh Whitby 5 years ago committed by GitHub
parent f5a125fe61
commit 6b5bbe50ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      app/scripts/lib/createDnodeRemoteGetter.js

@ -1,18 +0,0 @@
export default createDnodeRemoteGetter
function createDnodeRemoteGetter (dnode) {
let remote
dnode.once('remote', (_remote) => {
remote = _remote
})
async function getRemote () {
if (remote) {
return remote
}
return await new Promise((resolve) => dnode.once('remote', resolve))
}
return getRemote
}
Loading…
Cancel
Save