mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-20 16:48:23 +00:00
try queue setup
This commit is contained in:
parent
5fbf2abcb0
commit
683d2186b0
@ -15,16 +15,13 @@ type AsyncCircomCompat* = object
|
||||
circom*: CircomCompat
|
||||
tp*: Taskpool
|
||||
|
||||
var circomBackend {.threadvar.}: Option[CircomCompat]
|
||||
|
||||
proc proveTask[H](
|
||||
params: CircomCompat,
|
||||
circom: CircomCompat,
|
||||
data: ProofInputs[H],
|
||||
results: SignalQueuePtr[Result[CircomProof, string]],
|
||||
) =
|
||||
var val: Result[CircomProof, string]
|
||||
|
||||
let proof = circomBackend.get().prove(data)
|
||||
let proof = circom.prove(data)
|
||||
if proof.isOk():
|
||||
val.ok(proof.get())
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user