]> zoso.dev Git - nano-pow.git/commitdiff
Reduce waiting period on work calls.
authorChris Duncan <chris@zoso.dev>
Tue, 22 Apr 2025 18:48:52 +0000 (11:48 -0700)
committerChris Duncan <chris@zoso.dev>
Tue, 22 Apr 2025 18:48:52 +0000 (11:48 -0700)
src/lib/gpu/index.ts

index 5ca266e9079350f4b967078f2b8630632dca3e8f..fc7c20ad6772625316ec9c9e476d69200d85fd4b 100644 (file)
@@ -234,7 +234,7 @@ export class NanoPowGpu {
                                setTimeout(async (): Promise<void> => {
                                        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<void> => {
                                        const result = this.work_validate(work, hash, options)
                                        resolve(result)
-                               }, 500)
+                               }, 100)
                        })
                }
                if (this.#isInitialized === false) this.init()