git ssb

0+

wanderer🌟 / js-primea-hypervisor



Commit 9757e55d0c365901b8de39045c84bc6556c69e83

queue using port instead of port name

Signed-off-by: wanderer <mjbecze@gmail.com>
wanderer committed on 8/22/2017, 8:12:05 PM
Parent: eeafed5ddfd0f8034e4ba37b0227fb7a2a470c3c

Files changed

index.jschanged
kernel.jschanged
index.jsView
@@ -53,9 +53,9 @@
5353 async send (port, message) {
5454 const id = port.destId
5555 if (id) {
5656 const instance = await this.getInstance(id)
57- instance.queue(port.destName, message)
57+ instance.queue(port, message)
5858 } else {
5959 // port is unbound
6060 port.destPort.messages.push(message)
6161 }
kernel.jsView
@@ -33,10 +33,10 @@
3333 * adds a message to this containers message queue
3434 * @param {string} portName
3535 * @param {object} message
3636 */
37- queue (portName, message) {
38- this.ports.queue(portName, message)
37+ queue (port, message) {
38+ this.ports.queue(port.destName, message)
3939 this._startMessageLoop()
4040 }
4141
4242 async create (message) {

Built with git-ssb-web