querysub 0.393.0 → 0.394.0
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.
package/package.json
CHANGED
|
@@ -138,11 +138,11 @@ export async function moveLogsToPublic(config: {
|
|
|
138
138
|
for (let i = 0; i < groups.length; i++) {
|
|
139
139
|
let group = groups[i];
|
|
140
140
|
let time = Date.now();
|
|
141
|
-
let buffers: Buffer[] = [];
|
|
141
|
+
let buffers: { buffer: Buffer; path: string }[] = [];
|
|
142
142
|
await Promise.all(group.map(async x => {
|
|
143
143
|
let buffer = await localLogs.get(x.fullPath);
|
|
144
144
|
if (buffer) {
|
|
145
|
-
buffers.push(buffer);
|
|
145
|
+
buffers.push({ buffer, path: x.fullPath });
|
|
146
146
|
}
|
|
147
147
|
}));
|
|
148
148
|
if (buffers.length === 0) continue;
|
|
@@ -152,8 +152,13 @@ export async function moveLogsToPublic(config: {
|
|
|
152
152
|
let allBuffers: Buffer[][] = [];
|
|
153
153
|
|
|
154
154
|
for (let buffer of buffers) {
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
try {
|
|
156
|
+
let decoded = await BufferIndex.decodeAll(buffer.buffer);
|
|
157
|
+
allBuffers.push(decoded);
|
|
158
|
+
} catch (e) {
|
|
159
|
+
console.error(`Error decoding buffer, ignoring it`, { path: buffer.path, bufferLength: buffer.buffer.length, bufferFirst100: buffer.buffer.slice(0, 100).toString("hex"), error: String(e.stack) });
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
157
162
|
}
|
|
158
163
|
|
|
159
164
|
let buffersFlat = allBuffers.flat();
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/*
|
|
2
2
|
todonext
|
|
3
3
|
|
|
4
|
+
Now nothing runs. I guess more that our disk is not working. Task manager won't open either. Fuck, we need to restart our computer.
|
|
5
|
+
|
|
4
6
|
-1) Deploy everything again!
|
|
5
7
|
|
|
6
8
|
-2) Fix synchronization speed from remote to local.
|
|
@@ -13,7 +15,6 @@ Write Monthly Summary
|
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
|
|
16
|
-
|
|
17
18
|
//todonext
|
|
18
19
|
// Reorganize our lifecycles ideas
|
|
19
20
|
// - Scans over past logs, and only finished, never pending
|