ipfs-cluster/pintracker
Hector Sanjuan 592ce450ce pintracker: RecoverAll should only return status for recovered items
We call RecoverAll regularly and I noticed it was way slower than it should be.

After all, it should just loop the pinset and enqueued items that are
unexpectedly unpinned or in pin error.

However, at some point we decided that RecoverAll would return information for
all pins, regardless of whether they were recovered or not. This ends up
resulting in a separate Status call for every pin that is already pinned, and
this call hits IPFS. This is pretty bad with big pinsets.

This commit fixes that, we return no state information for pins that are not
touched.
2022-01-11 16:22:03 +01:00
..
optracker pintracker: carry over attempt account only for operations of the same type 2021-11-30 04:20:35 +01:00
stateless pintracker: RecoverAll should only return status for recovered items 2022-01-11 16:22:03 +01:00
pintracker_test.go pintracker: RecoverAll should only return status for recovered items 2022-01-11 16:22:03 +01:00