16 lines
564 B
TypeScript
16 lines
564 B
TypeScript
/// SPDX-License-Identifier: GPL-3.0-or-later
|
|
/// SPDX-FileCopyrightText: Copyright © 2016-2021 Tony Garnock-Jones <tonyg@leastfixedpoint.com>
|
|
|
|
import { N } from './protocol.js';
|
|
import * as Box from './box.js';
|
|
import * as Client from './client.js';
|
|
import { Actor, Dataspace, Turn } from '@syndicate-lang/core';
|
|
|
|
console.time('box-and-client-' + N.toString());
|
|
Actor.boot(() => {
|
|
Turn.activeFacet.preventInertCheck();
|
|
const ds = create new Dataspace();
|
|
Box.boot(ds);
|
|
Client.boot(ds, () => console.timeEnd('box-and-client-' + N.toString()));
|
|
});
|