Sharding: dag service: force pin mode to Recursive

This is just a safeguard.
This commit is contained in:
Hector Sanjuan 2020-04-21 22:59:14 +02:00
parent fa762d78cf
commit 2a2ca2ce46

View File

@ -52,6 +52,8 @@ type DAGService struct {
// New returns a new ClusterDAGService, which uses the given rpc client to perform
// Allocate, IPFSBlockPut and Pin requests to other cluster components.
func New(rpc *rpc.Client, opts api.PinOptions, out chan<- *api.AddedOutput) *DAGService {
// use a default value for this regardless of what is provided.
opts.Mode = api.PinModeRecursive
return &DAGService{
rpcClient: rpc,
pinOpts: opts,