-
Notifications
You must be signed in to change notification settings - Fork 119
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
fix: store IPFS peer IDs #1093
Conversation
There was a problem hiding this 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] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Reverts #966 and instead stores the IPFS peer ID in the
pin_location
table.