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
|
lastAlias = alias
|
||||||
lastPass = pass
|
lastPass = pass
|
||||||
lastPair = ack.sea
|
lastPair = ack.sea
|
||||||
processPendingPutsFromLastGun(currentGun)
|
flushPendingPuts()
|
||||||
res(ack.sea)
|
res(ack.sea)
|
||||||
} else {
|
} else {
|
||||||
rej(new Error('Auth: ack.sea undefined'))
|
rej(new Error('Auth: ack.sea undefined'))
|
||||||
|
|
@ -158,9 +158,7 @@ const autoAuth = () => {
|
||||||
return auth(lastAlias, lastPass)
|
return auth(lastAlias, lastPass)
|
||||||
}
|
}
|
||||||
|
|
||||||
const processPendingPutsFromLastGun = async (forGun, pps = pendingPuts) => {
|
const flushPendingPuts = () => {}
|
||||||
// TODO
|
|
||||||
}
|
|
||||||
|
|
||||||
const forge = () => {
|
const forge = () => {
|
||||||
if (currentGun) {
|
if (currentGun) {
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,6 @@ const handleMsg = msg => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (msg.type === 'load') {
|
if (msg.type === 'load') {
|
||||||
const { id, path } = msg
|
|
||||||
const [root, ...keys] = msg.path.split('>')
|
const [root, ...keys] = msg.path.split('>')
|
||||||
|
|
||||||
/** @type {GunT.GUNNode} */
|
/** @type {GunT.GUNNode} */
|
||||||
|
|
@ -109,7 +108,7 @@ const handleMsg = msg => {
|
||||||
/** @type {Smith.GunMsgLoad} */
|
/** @type {Smith.GunMsgLoad} */
|
||||||
const res = {
|
const res = {
|
||||||
data,
|
data,
|
||||||
id,
|
id: msg.id,
|
||||||
key,
|
key,
|
||||||
type: 'load'
|
type: 'load'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue