Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
user: AuxUser,
config: AuxConfig,
options: RemoteAuxChannelOptions
) {
super(user, config, options);
this._partitionOptions = {
...(options.partitionOptions || {
defaultHost: null,
}),
treeOptions: {
filter: filterAtomFactory(() => this.helper),
},
};
// {
// defaultHost: defaultHost,
// store: options.store,
// crypto: options.crypto,
// treeOptions: {
// filter: filterAtomFactory(() => this.helper),
// },
// };
}
protected async _createPartition(
config: PartitionConfig
): Promise {
return await createAuxPartition(
config,
createLocalCausalTreePartitionFactory(
{
treeOptions: {
filter: filterAtomFactory(() => this.helper),
},
},
this.user,
this._device
),
createMemoryPartition,
config => createCausalRepoPartition(config, this.user)
);
}