This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,11 @@ module.exports = {
149
149
type : 'boolean' ,
150
150
default : true ,
151
151
describe : 'Pin this object when adding'
152
+ } ,
153
+ preload : {
154
+ type : 'boolean' ,
155
+ default : true ,
156
+ describe : 'Preload this object when adding'
152
157
}
153
158
} ,
154
159
@@ -166,7 +171,8 @@ module.exports = {
166
171
hashAlg : argv . hash ,
167
172
wrapWithDirectory : argv . wrapWithDirectory ,
168
173
pin : argv . pin ,
169
- chunker : argv . chunker
174
+ chunker : argv . chunker ,
175
+ preload : argv . preload
170
176
}
171
177
172
178
if ( options . enableShardingExperiment && argv . isDaemonOn ( ) ) {
Original file line number Diff line number Diff line change @@ -162,7 +162,8 @@ exports.add = {
162
162
pin : Joi . boolean ( ) . default ( true ) ,
163
163
'wrap-with-directory' : Joi . boolean ( ) ,
164
164
chunker : Joi . string ( ) ,
165
- trickle : Joi . boolean ( )
165
+ trickle : Joi . boolean ( ) ,
166
+ preload : Joi . boolean ( ) . default ( true )
166
167
} )
167
168
// TODO: Necessary until validate "recursive", "stream-channels" etc.
168
169
. options ( { allowUnknown : true } )
@@ -220,7 +221,8 @@ exports.add = {
220
221
wrapWithDirectory : request . query [ 'wrap-with-directory' ] ,
221
222
pin : request . query . pin ,
222
223
chunker : request . query . chunker ,
223
- strategy : request . query . trickle ? 'trickle' : 'balanced'
224
+ strategy : request . query . trickle ? 'trickle' : 'balanced' ,
225
+ preload : request . query . preload
224
226
}
225
227
226
228
const aborter = abortable ( )
You can’t perform that action at this time.
0 commit comments