BlockAllocate should respect user allocations

This commit is contained in:
Kishan Mohanbhai Sagathiya 2019-08-31 16:24:20 +05:30
parent 6bd897ac47
commit ea7093aa73

View File

@ -396,8 +396,8 @@ func (rpcapi *ClusterRPCAPI) BlockAllocate(ctx context.Context, in *api.Pin, out
in.Cid,
in.ReplicationFactorMin,
in.ReplicationFactorMax,
[]peer.ID{}, // blacklist
[]peer.ID{}, // prio list
[]peer.ID{}, // blacklist
in.UserAllocations, // prio list
)
if err != nil {