MCPcopy Create free account
hub / github.com/tiann/hapi / backfillIfNeeded

Method backfillIfNeeded

cli/src/api/apiSession.ts:372–383  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

370 }
371
372 private async backfillIfNeeded(): Promise<void> {
373 if (!this.needsBackfill) {
374 return
375 }
376 try {
377 await this.backfillMessages()
378 this.needsBackfill = false
379 } catch (error) {
380 logger.debug('[API] Backfill failed', error)
381 this.needsBackfill = true
382 }
383 }
384
385 private async backfillMessages(): Promise<void> {
386 if (this.backfillInFlight) {

Callers 1

constructorMethod · 0.95

Calls 2

backfillMessagesMethod · 0.95
debugMethod · 0.80

Tested by

no test coverage detected