Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32134785
D15474.1765027131.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
833 B
Referenced Files
None
Subscribers
None
D15474.1765027131.diff
View Options
diff --git a/lib/shared/farcaster/farcaster-hooks.js b/lib/shared/farcaster/farcaster-hooks.js
--- a/lib/shared/farcaster/farcaster-hooks.js
+++ b/lib/shared/farcaster/farcaster-hooks.js
@@ -291,6 +291,7 @@
): Promise<Array<R>> {
const results: Array<R> = [];
let failedItemsCount = 0;
+ let progress = 0;
for (let i = 0; i < items.length; i += batchSize) {
const batch = items.slice(i, i + batchSize);
@@ -314,6 +315,9 @@
);
}
return null;
+ } finally {
+ progress++;
+ onProgress?.(progress, items.length);
}
});
@@ -361,9 +365,6 @@
});
}
- const completedItems = Math.min(i + batchSize, items.length);
- onProgress?.(completedItems, items.length);
-
// This should help with the app responsiveness
await sleep(0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 1:18 PM (19 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5837903
Default Alt Text
D15474.1765027131.diff (833 B)
Attached To
Mode
D15474: [lib] Report progress after a conversation is fetched
Attached
Detach File
Event Timeline
Log In to Comment