Prioritize conversation replies

This commit is contained in:
jjbrunton committed 2026-08-09 16:04:39 +01:00
1 parent f55ae7ddf8
commit 9b86cee9be
13 files changed
+535 -39

No files matched your search

+2 -1
View File
@@ -54,6 +54,7 @@ export class RateLimiter {
fn: () => Promise<T>,
shouldCount: (result: T) => boolean = () => true,
signal?: AbortSignal,
priority = 0,
): Promise<T> {
return this.queue.add(async () => {
await this.initialize();
@@ -92,7 +93,7 @@ export class RateLimiter {
}
return result;
}) as Promise<T>;
}, { priority }) as Promise<T>;
}
private async loadHistory(provider: SentMessageHistoryProvider): Promise<void> {