application-research / autoretrieve

A server to make GraphSync data accessible on IPFS
22 stars 7 forks source link

Pruner fixes #105

Closed elijaharita closed 2 years ago

elijaharita commented 2 years ago
elijaharita commented 2 years ago

@hannahhoward the poll function's call chain goes back to the retrieve function, which has a high probability of being canceled. before this change, if the retrieval that initiated the pruner poll operation was canceled, it would cause the prune to be canceled as well because of the shared context, which doesn't make sense since the prune operation shouldn't care what the original caller is doing since it's running independently in a parallel goroutine.