Skip to content

Commit

Permalink
chore: Add 10 second sleep before exiting (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
stbrody authored Dec 6, 2021
1 parent 5a340c2 commit 41bc9aa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/services/anchor-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,17 @@ export default class AnchorService {
candidateCount: candidates.length,
anchorCount: anchors.length,
})
logger.debug('About to log CIDs that were anchored')
for (const candidate of merkleTree.getLeaves()) {
logger.debug(
`Successfully anchored CID ${candidate.cid.toString()} for stream ${candidate.streamId.toString()}`
)
}
logger.imp(`Service successfully anchored ${anchors.length} CIDs.`)

logger.debug(`Sleeping 10 seconds for logs to flush`)
await Utils.delay(10000)
logger.debug(`10 second sleep complete!`)
}

private async _garbageCollect(requests: Request[]): Promise<void> {
Expand Down

0 comments on commit 41bc9aa

Please sign in to comment.