Change name of puts procedure
This commit is contained in:
parent
642d7592ac
commit
773d6f5e22
2 changed files with 3 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue