forked from Kieran/snort
chore: Update translations
This commit is contained in:
parent
3c3e35ad4f
commit
0ab896923e
@ -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);
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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 {
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user