Change name of puts procedure

This commit is contained in:
Daniel Lugo 2021-09-13 10:21:04 -04:00
parent 642d7592ac
commit 773d6f5e22
2 changed files with 3 additions and 6 deletions

View file

@ -136,7 +136,7 @@ const auth = (alias, pass) =>
lastAlias = alias
lastPass = pass
lastPair = ack.sea
processPendingPutsFromLastGun(currentGun)
flushPendingPuts()
res(ack.sea)
} else {
rej(new Error('Auth: ack.sea undefined'))
@ -158,9 +158,7 @@ const autoAuth = () => {
return auth(lastAlias, lastPass)
}
const processPendingPutsFromLastGun = async (forGun, pps = pendingPuts) => {
// TODO
}
const flushPendingPuts = () => {}
const forge = () => {
if (currentGun) {

View file

@ -92,7 +92,6 @@ const handleMsg = msg => {
})
}
if (msg.type === 'load') {
const { id, path } = msg
const [root, ...keys] = msg.path.split('>')
/** @type {GunT.GUNNode} */
@ -109,7 +108,7 @@ const handleMsg = msg => {
/** @type {Smith.GunMsgLoad} */
const res = {
data,
id,
id: msg.id,
key,
type: 'load'
}