You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like you track your various DagShards in the retrieval provider by the deal only. While using a deal ID generated from time.Now() makes this less likely, deal ID is NOT gauranteed to be unique. For unique ID, you need to combine DealID + peer.ID -- which is why we use that combination for ProviderDealId, the value we index stored retrieval deals by elsewhere.
The text was updated successfully, but these errors were encountered:
Hello:
I noticed we have:
https://github.com/filecoin-project/go-fil-markets/blob/master/retrievalmarket/impl/provider_environments.go#L138
and
https://github.com/filecoin-project/go-fil-markets/blob/master/retrievalmarket/impl/provider_environments.go#L261
It looks like you track your various DagShards in the retrieval provider by the deal only. While using a deal ID generated from time.Now() makes this less likely, deal ID is NOT gauranteed to be unique. For unique ID, you need to combine DealID + peer.ID -- which is why we use that combination for ProviderDealId, the value we index stored retrieval deals by elsewhere.
The text was updated successfully, but these errors were encountered: