work around windows
This commit is contained in:
parent
ca8e938836
commit
36a9766c40
|
@ -31,8 +31,7 @@ proc prove*[H](
|
|||
): Future[?!CircomProof] {.async.} =
|
||||
## Generates proof using circom-compat asynchronously
|
||||
##
|
||||
let queueRes: ?!SignalQueuePtr[?!CircomProof] = newSignalQueue[?!CircomProof](maxItems = 1)
|
||||
without queue =? queueRes, err:
|
||||
without queue =? newSignalQueue[?!CircomProof](maxItems = 1), err:
|
||||
return failure(err)
|
||||
|
||||
proc spawnTask() =
|
||||
|
|
|
@ -35,7 +35,8 @@ proc newSignalQueue*[T](
|
|||
result = success cast[ptr SignalQueue[T]](allocShared0(sizeof(SignalQueue[T])))
|
||||
let sigRes = ThreadSignalPtr.new()
|
||||
if sigRes.isErr():
|
||||
return failure(sigRes.error())
|
||||
let msg: string = sigRes.error()
|
||||
return failure((ref CatchableError)(msg: msg))
|
||||
result[].signal = sigRes.get()
|
||||
result[].chan.open(maxItems)
|
||||
|
||||
|
|
Loading…
Reference in New Issue