chore: Update translations

This commit is contained in:
kieran 2024-04-12 17:32:02 +00:00
parent 3c3e35ad4f
commit 0ab896923e
5 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ export async function initRelayWorker() {
try { try {
await Relay.init({ await Relay.init({
databasePath: "relay.db", databasePath: "relay.db",
insertBatchSize: 100 insertBatchSize: 100,
}); });
} catch (e) { } catch (e) {
console.error(e); console.error(e);

View File

@ -24,7 +24,7 @@ const workerRelay = new WorkerRelayInterface(workerScript);
// load sqlite database and run migrations // load sqlite database and run migrations
await workerRelay.init({ await workerRelay.init({
databasePath: "relay.db", databasePath: "relay.db",
insertBatchSize: 100 insertBatchSize: 100,
}); });
// Query worker relay with regular nostr REQ command // Query worker relay with regular nostr REQ command

View File

@ -13,7 +13,7 @@ const workerRelay = new WorkerRelayInterface(workerScript);
// load sqlite database and run migrations // load sqlite database and run migrations
await workerRelay.init({ await workerRelay.init({
databasePath: "relay.db", databasePath: "relay.db",
insertBatchSize: 100 insertBatchSize: 100,
}); });
// Query worker relay with regular nostr REQ command // Query worker relay with regular nostr REQ command

View File

@ -5,12 +5,12 @@ export interface InitAargs {
/** /**
* OPFS file path for the database * OPFS file path for the database
*/ */
databasePath: string, databasePath: string;
/** /**
* How many events to insert per batch * How many events to insert per batch
*/ */
insertBatchSize?: number insertBatchSize?: number;
} }
export class WorkerRelayInterface { export class WorkerRelayInterface {

View File

@ -44,8 +44,8 @@ try {
} }
interface InitAargs { interface InitAargs {
databasePath: string, databasePath: string;
insertBatchSize?: number insertBatchSize?: number;
} }
const handleMsg = async (port: MessagePort | DedicatedWorkerGlobalScope, ev: MessageEvent) => { const handleMsg = async (port: MessagePort | DedicatedWorkerGlobalScope, ev: MessageEvent) => {