Explorar o código

optimise again

Shawn Lu hai 1 ano
pai
achega
0e31d89de1
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      src/faucet/captcha.ts
  2. 1 1
      src/faucet/faucet.ts

+ 1 - 1
src/faucet/captcha.ts

@@ -51,7 +51,7 @@ export async function getAltchaPayload(client: AxiosInstance) {
       // console.log(challenge)
       const solution = await solveChallengeWorkers(
         './build/src/faucet/worker.js',
-        cpus.length / 2,
+        cpus.length / 4,
         challenge.challenge,
         challenge.salt,
         challenge.max,

+ 1 - 1
src/faucet/faucet.ts

@@ -51,4 +51,4 @@ async function startFaucet(concurrency = 10) {
   })
 }
 
-await startFaucet(4)
+await startFaucet(8)