@knowlearning/agents 0.9.106 → 0.9.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -52,6 +52,7 @@ export default function messageQueue({ token, domain, Connection, watchers, stat
|
|
|
52
52
|
}
|
|
53
53
|
else {
|
|
54
54
|
si += 1
|
|
55
|
+
if (responses[si]) console.log('ERROR! response for si already set!', si, scope, patch)
|
|
55
56
|
lastSynchronousScopePatchPromise = new Promise((resolve, reject) => responses[si] = [[resolve, reject]])
|
|
56
57
|
messageQueue.push({ scope, patch, si, ts: Date.now()})
|
|
57
58
|
lastSynchronousScopePatched = scope
|
|
@@ -167,7 +168,7 @@ export default function messageQueue({ token, domain, Connection, watchers, stat
|
|
|
167
168
|
}
|
|
168
169
|
}
|
|
169
170
|
else if (message.si !== undefined) {
|
|
170
|
-
console.log('GOT RESPONSE', message.si, message)
|
|
171
|
+
console.log('GOT RESPONSE', message.si, message, responses)
|
|
171
172
|
if (responses[message.si]) {
|
|
172
173
|
// TODO: remove "acknowledged" messages from queue and do accounting with si
|
|
173
174
|
responses[message.si]
|