Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: store IPFS peer IDs #1093

Merged
merged 6 commits into from
Mar 10, 2022
Merged

fix: store IPFS peer IDs #1093

merged 6 commits into from
Mar 10, 2022

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Mar 9, 2022

Reverts #966 and instead stores the IPFS peer ID in the pin_location table.

Copy link
Contributor

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for putting this together really fast Alan ❤️

@@ -68,7 +68,7 @@ export async function updatePinStatuses ({ cluster, db }) {
return null // Cluster could not find the content, please check later
}

let pinInfo = Object.values(peerMap).find(i => pin.location.peerId === i.ipfsPeerId)
let pinInfo = peerMap[pin.location.peerId]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to merge this and immediately release to avoid making cron fail in the meantime

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will pause the cron when we start maintenance tomorrow.

@alanshaw alanshaw merged commit 1f2dcda into main Mar 10, 2022
@alanshaw alanshaw deleted the fix/store-ipfs-peer-id branch March 10, 2022 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants