Commit 9a4121d28f7b5ad414632abaf7e2528b0d978bdc
tidy
Dominic Tarr committed on 9/1/2016, 4:39:48 AMParent: 3bbf32ed49e52eec1e7cf83bf66d6d800e78c937
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -110,9 +110,8 @@ | ||
110 | 110 … | |
111 | 111 … | db.needsRebuild = function (cb) { |
112 | 112 … | sysDB.get('vmajor', function (err, dbvmajor) { |
113 | 113 … | dbvmajor = (dbvmajor|0) || 0 |
114 | - console.log('REBUILD', dbvmajor, getVMajor()) | |
115 | 114 … | cb(null, dbvmajor < getVMajor()) |
116 | 115 … | }) |
117 | 116 … | } |
118 | 117 … | |
@@ -127,16 +126,14 @@ | ||
127 | 126 … | if(err && !ended) cb(ended = err) |
128 | 127 … | } |
129 | 128 … | |
130 | 129 … | var m = 4 |
131 | - console.log("await") | |
132 | 130 … | feedDB.await(next2) |
133 | 131 … | clockDB.await(next2) |
134 | 132 … | lastDB.await(next2) |
135 | 133 … | indexDB.await(next2) |
136 | 134 … | |
137 | 135 … | function next2 () { |
138 | - console.log('rebuild!', m) | |
139 | 136 … | if(ended) return |
140 | 137 … | if(--m) return |
141 | 138 … | ended = true |
142 | 139 … | sysDB.put('vmajor', getVMajor(), cb) |
@@ -315,5 +312,4 @@ | ||
315 | 312 … | |
316 | 313 … | return db |
317 | 314 … | } |
318 | 315 … | |
319 | - |
Built with git-ssb-web