Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33392620
D15474.1768974168.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.1768974168.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
@@ -316,6 +316,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);
@@ -339,6 +340,9 @@
);
}
return null;
+ } finally {
+ progress++;
+ onProgress?.(progress, items.length);
}
});
@@ -386,9 +390,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
Wed, Jan 21, 5:42 AM (20 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5966874
Default Alt Text
D15474.1768974168.diff (833 B)
Attached To
Mode
D15474: [lib] Report progress after a conversation is fetched
Attached
Detach File
Event Timeline
Log In to Comment