Skip to content

Commit

Permalink
feat(did.processor): add logs for IPFS pinning enablement
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhender committed Jan 15, 2025
1 parent 6a16c29 commit 75c7719
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/did/did.processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,14 @@ export class DIDProcessor {
private async addPinJobs(doc: DIDDocumentEntity) {
// Cluster pinning needs to be explictly set to true
if (!this.configService.get<boolean>('IPFS_CLUSTER_PINNING_ENABLED')) {
this.logger.debug(
`IPFS cluster pinning disabled. Skipping for ${doc?.id}`
);
return;
}
this.logger.debug(
`IPFS cluster pinning enabled. Pinning IPFS data for ${doc?.id}`
);
await Promise.all(
doc.service.map(({ serviceEndpoint }) => {
this.pinQueue.add(PIN_CLAIM_JOB_NAME, {
Expand Down

0 comments on commit 75c7719

Please sign in to comment.