Sharding: dag service: force pin mode to Recursive
This is just a safeguard.
This commit is contained in:
parent
fa762d78cf
commit
2a2ca2ce46
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user