ipfs-cluster/api
Hector Sanjuan c7847e9677 rest/client: WaitFor(): support waiting for N peers to reach target.
This commit updates the WaitFor StatusFilterParams to add a Limit field, and
reworks the waiting logic to simplify it.

The Limit parameter causes WaitFor to return successfully when N number of
peers have reached the target status, regardless of what other statuses are
(as long as they are not errors)

Other than that, the function logic should remain the same, blocking until all
statuses are the target, with a special case about target-Pinned, which causes
Remote statuses to be ignored.
2021-08-13 11:24:54 +02:00
..
ipfsproxy Fix #1366: IPFS Proxy API serializes wrong error types 2021-06-28 22:42:47 +02:00
pb Feat #1374: Add Origins option to pins 2021-07-02 01:42:51 +02:00
rest rest/client: WaitFor(): support waiting for N peers to reach target. 2021-08-13 11:24:54 +02:00
add_test.go Fix #1358: Set RawLeaves to true when unset and CidVersion=1 (#1359) 2021-05-19 23:56:30 +02:00
add.go Feat #1374: Add Origins option to pins 2021-07-02 01:42:51 +02:00
types_test.go Feat #1374: Only accept Origins that have a p2p component 2021-07-02 01:49:30 +02:00
types.go Merge pull request #1377 from ipfs/fix/1360-efficient-pin-status 2021-07-06 11:57:09 +02:00
util.go staticcheck: fix all staticcheck warnings in the project 2020-04-14 20:16:10 +02:00