Skip to content

Commit

Permalink
fix: comment out getFailedCIDs code block
Browse files Browse the repository at this point in the history
Co-Authored-By: Nico Krause <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and silkroadnomad committed Dec 21, 2024
1 parent c0f86bd commit 9228313
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions relay/src/httpServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,16 +309,16 @@ export function createHttpServer(helia, orbitdb, electrumClient) {
isPinned = true

// Remove from failed pins DB since we successfully retrieved and pinned it
try {
const failedCIDs = await getFailedCIDs(orbitdb)
const failedEntry = failedCIDs.find(f => f.cid === cidStr)
if (failedEntry) {
await failedEntry.db.del(failedEntry.key)
console.log(`✅ Removed ${cidStr} from failed pins database`)
}
} catch (cleanupError) {
console.log(`⚠️ Failed to remove ${cidStr} from failed pins database: ${cleanupError.message}`)
}
// try {
// const failedCIDs = await getFailedCIDs(orbitdb)
// const failedEntry = failedCIDs.find(f => f.cid === cidStr)
// if (failedEntry) {
// await failedEntry.db.del(failedEntry.key)
// console.log(`✅ Removed ${cidStr} from failed pins database`)
// }
// } catch (cleanupError) {
// console.log(`⚠️ Failed to remove ${cidStr} from failed pins database: ${cleanupError.message}`)
// }
} catch (pinError) {
console.log(`❌ Failed to pin CID: ${cid.toString()} - ${pinError.message}`)
}
Expand Down Expand Up @@ -630,4 +630,4 @@ async function processBlockAtHeight(height, electrumClient) {
}

return { nameOpUtxos, blockDate };
}
}

0 comments on commit 9228313

Please sign in to comment.