Commit 9695ea8eac2e23f6a7008304a5e2954129f7019d
Merge pull request #161 from primea/greenkeeper/dfinity-radix-tree-0.0.4
Update dfinity-radix-tree to the latest version 🚀wanderer authored on 10/20/2017, 6:50:17 PM
GitHub committed on 10/20/2017, 6:50:17 PM
Parent: db20563d964d0ca8262c7bfc16ff3b9e742f289b
Parent: 22cdc4553fb9b622685313bf95bdfd95774424cf
Files changed
dfsChecker.js | changed |
index.js | changed |
package-lock.json | changed |
package.json | changed |
dfsChecker.js | |||
---|---|---|---|
@@ -58,9 +58,9 @@ | |||
58 | 58 … | hasRootSet = checkedNodes | |
59 | 59 … | return | |
60 | 60 … | } | |
61 | 61 … | ||
62 | - const node = await tree.get(id) | ||
62 … | + const node = await tree.get(id).then(r => r.value) | ||
63 | 63 … | const promises = [] | |
64 | 64 … | // iterate through the nodes ports and recursivly check them | |
65 | 65 … | for (const name in node.ports) { | |
66 | 66 … | const port = node.ports[name] |
index.js | ||
---|---|---|
@@ -46,9 +46,10 @@ | ||
46 | 46 … | let containerState |
47 | 47 … | if (instance) { |
48 | 48 … | containerState = instance.state |
49 | 49 … | } else { |
50 | - containerState = await this.tree.get(port.destId, true) | |
50 … | + let {value} = await this.tree.get(port.destId, true) | |
51 … | + containerState = value | |
51 | 52 … | } |
52 | 53 … | return this.tree.graph.get(containerState, `ports/${port.destName}`) |
53 | 54 … | } |
54 | 55 … | } |
@@ -66,9 +67,9 @@ | ||
66 | 67 … | |
67 | 68 … | // loads an instance of a container from the state |
68 | 69 … | async _loadInstance (id, state) { |
69 | 70 … | if (!state) { |
70 | - state = await this.tree.get(id, true) | |
71 … | + state = await this.tree.get(id, true).then(result => result.value) | |
71 | 72 … | } |
72 | 73 … | const container = this._containerTypes[state.type] |
73 | 74 … | |
74 | 75 … | // create a new kernel instance |
package-lock.json | ||
---|---|---|
The diff is too large to show. Use a local git client to view these changes. Old file size: 402174 bytes New file size: 397197 bytes |
package.json | ||
---|---|---|
@@ -30,9 +30,9 @@ | ||
30 | 30 … | "contributors": "Alex Beregszaszi <alex@rtfs.hu>", |
31 | 31 … | "license": "MPL-2.0", |
32 | 32 … | "dependencies": { |
33 | 33 … | "binary-search-insert": "^1.0.3", |
34 | - "dfinity-radix-tree": "0.0.3", | |
34 … | + "dfinity-radix-tree": "0.0.4", | |
35 | 35 … | "lockmap": "0.0.0", |
36 | 36 … | "primea-message": "0.0.2", |
37 | 37 … | "sortedmap": "0.0.1", |
38 | 38 … | "typedarray-addition": "0.0.1" |
Built with git-ssb-web