Skip to content

Commit e7d0f4c

Browse files
committed
add dbg info helper
1 parent 75d2dbf commit e7d0f4c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/db/src/study/services/CardHydrationService.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ export class CardHydrationService<TView = unknown> {
7979
return this.hydratedQ.length;
8080
}
8181

82+
/**
83+
* Get current failed card cache size.
84+
*/
85+
public get failedCacheSize(): number {
86+
return this.failedCardCache.size;
87+
}
88+
8289
/**
8390
* Fill the hydrated queue up to BUFFER_SIZE with pre-fetched cards.
8491
*/

0 commit comments

Comments
 (0)