From: Chris Duncan Date: Tue, 22 Apr 2025 18:48:52 +0000 (-0700) Subject: Reduce waiting period on work calls. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=ba44ce76b0b7f6b08d5f4173a0e65d044b1edfe1;p=nano-pow.git Reduce waiting period on work calls. --- diff --git a/src/lib/gpu/index.ts b/src/lib/gpu/index.ts index 5ca266e..fc7c20a 100644 --- a/src/lib/gpu/index.ts +++ b/src/lib/gpu/index.ts @@ -234,7 +234,7 @@ export class NanoPowGpu { setTimeout(async (): Promise => { const result = this.work_generate(hash, options) resolve(result) - }, 500) + }, 100) }) } if (this.#isInitialized === false) this.init() @@ -313,7 +313,7 @@ export class NanoPowGpu { setTimeout(async (): Promise => { const result = this.work_validate(work, hash, options) resolve(result) - }, 500) + }, 100) }) } if (this.#isInitialized === false) this.init()