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 {
|
||||
await Relay.init({
|
||||
databasePath: "relay.db",
|
||||
insertBatchSize: 100
|
||||
insertBatchSize: 100,
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
|
@ -24,7 +24,7 @@ const workerRelay = new WorkerRelayInterface(workerScript);
|
||||
// load sqlite database and run migrations
|
||||
await workerRelay.init({
|
||||
databasePath: "relay.db",
|
||||
insertBatchSize: 100
|
||||
insertBatchSize: 100,
|
||||
});
|
||||
|
||||
// Query worker relay with regular nostr REQ command
|
||||
|
@ -13,7 +13,7 @@ const workerRelay = new WorkerRelayInterface(workerScript);
|
||||
// load sqlite database and run migrations
|
||||
await workerRelay.init({
|
||||
databasePath: "relay.db",
|
||||
insertBatchSize: 100
|
||||
insertBatchSize: 100,
|
||||
});
|
||||
|
||||
// Query worker relay with regular nostr REQ command
|
||||
|
@ -5,12 +5,12 @@ export interface InitAargs {
|
||||
/**
|
||||
* OPFS file path for the database
|
||||
*/
|
||||
databasePath: string,
|
||||
databasePath: string;
|
||||
|
||||
/**
|
||||
* How many events to insert per batch
|
||||
*/
|
||||
insertBatchSize?: number
|
||||
insertBatchSize?: number;
|
||||
}
|
||||
|
||||
export class WorkerRelayInterface {
|
||||
|
@ -44,8 +44,8 @@ try {
|
||||
}
|
||||
|
||||
interface InitAargs {
|
||||
databasePath: string,
|
||||
insertBatchSize?: number
|
||||
databasePath: string;
|
||||
insertBatchSize?: number;
|
||||
}
|
||||
|
||||
const handleMsg = async (port: MessagePort | DedicatedWorkerGlobalScope, ev: MessageEvent) => {
|
||||
|
Loading…
Reference in New Issue
Block a user