Commit 96e39ab7ae1995be4bbba6a87ca43f4a1e310e4c
remobe get from portmanager
wanderer committed on 5/15/2017, 5:34:53 PMParent: 1083d2c0b8a6bbe729c7484eea2f03a5b54da970
Files changed
portManager.js | changed |
portManager.js | ||
---|---|---|
@@ -56,13 +56,8 @@ | ||
56 | 56 | queue (message) { |
57 | 57 | this._portMap.get(message.fromPort).queue(message) |
58 | 58 | } |
59 | 59 | |
60 | - set (name, port) { | |
61 | - this.ports[name] = port | |
62 | - this._mapPort(name, port) | |
63 | - } | |
64 | - | |
65 | 60 | get (key) { |
66 | 61 | return this.ports[key] |
67 | 62 | } |
68 | 63 | |
@@ -85,9 +80,11 @@ | ||
85 | 80 | } |
86 | 81 | } |
87 | 82 | |
88 | 83 | // create the port instance |
89 | - this.set(name, portRef) | |
84 | + this.ports[name] = portRef | |
85 | + this._mapPort(name, portRef) | |
86 | + | |
90 | 87 | // incerment the nonce |
91 | 88 | nonce = new BN(nonce) |
92 | 89 | nonce.iaddn(1) |
93 | 90 | this.state['/'].nonce = nonce.toArray() |
Built with git-ssb-web