Commit 66b5a5e 1 parent 207d8d9 commit 66b5a5e Copy full SHA for 66b5a5e
File tree 1 file changed +10
-0
lines changed
packages/swingset-runner/src
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ FLAGS may be:
51
51
--initonly - initialize the swingset but exit without running it
52
52
--lmdb - runs using LMDB as the data store (default)
53
53
--memdb - runs using the non-persistent in-memory data store
54
+ --usexs - run vats using the the XS engine
54
55
--dbdir DIR - specify where the data store should go (default BASEDIR)
55
56
--dbsize SIZE - set the LMDB size limit to SIZE megabytes (default 2GB)
56
57
--blockmode - run in block mode (checkpoint every BLOCKSIZE blocks)
@@ -180,6 +181,7 @@ export async function main() {
180
181
let dbDir = null ;
181
182
let dbSize = 0 ;
182
183
let initOnly = false ;
184
+ let useXS = false ;
183
185
184
186
while ( argv [ 0 ] && argv [ 0 ] . startsWith ( '-' ) ) {
185
187
const flag = argv . shift ( ) ;
@@ -273,6 +275,10 @@ export async function main() {
273
275
case '--lmdb' :
274
276
dbMode = flag ;
275
277
break ;
278
+ case '--usexs' :
279
+ case '--useXS' :
280
+ useXS = true ;
281
+ break ;
276
282
case '-v' :
277
283
case '--verbose' :
278
284
verbose = true ;
@@ -332,6 +338,9 @@ export async function main() {
332
338
delete config . loopboxSenders ;
333
339
deviceEndowments . loopbox = { ...loopboxEndowments } ;
334
340
}
341
+ if ( useXS ) {
342
+ config . defaultManagerType = 'xs-worker' ;
343
+ }
335
344
if ( launchIndirectly ) {
336
345
config = generateIndirectConfig ( config ) ;
337
346
}
@@ -530,6 +539,7 @@ export async function main() {
530
539
if ( statLogger ) {
531
540
statLogger . close ( ) ;
532
541
}
542
+ controller . shutdown ( ) ;
533
543
534
544
function getCrankNumber ( ) {
535
545
return Number ( swingStore . kvStore . get ( 'crankNumber' ) ) ;
You can’t perform that action at this time.
0 commit comments