In go it doesn't matter if function returns 20 times. We need to do
a lot of error checking and that's how it should be.
Each of those error checks are 3 lines of code
so it also doesn't matter if functions are a bit longer.
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>
This PR replaces ReplicationFactor with ReplicationFactorMax
and ReplicationFactor min.
This allows a CID to be pinned even though the desired
replication factor (max) is not reached, and prevents triggering
re-pinnings when the replication factor has not crossed the
lower threshold (min).
License: MIT
Signed-off-by: Hector Sanjuan <code@hector.link>