mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-20 14:23:08 +00:00
fix indentation issue
This commit is contained in:
parent
9f32717d11
commit
4a9c1280ab
@ -216,7 +216,7 @@ proc asyncProve*[H](
|
||||
let threadFut = threadPtr.wait()
|
||||
|
||||
if joinErr =? catch(await threadFut.join()).errorOption:
|
||||
if err=? catch(await noCancel threadFut).errorOption:
|
||||
if err =? catch(await noCancel threadFut).errorOption:
|
||||
return failure(err)
|
||||
if joinErr of CancelledError:
|
||||
raise joinErr
|
||||
@ -249,11 +249,11 @@ proc circomVerifyTask(task: ptr VerifyTask) {.gcsafe.} =
|
||||
|
||||
let res = verify_circuit(task[].proof, task[].inputs, task[].vkp)
|
||||
if res == ERR_OK:
|
||||
task[].success[]=true
|
||||
task[].success[] = true
|
||||
elif res == ERR_FAILED_TO_VERIFY_PROOF:
|
||||
task[].success[]=false
|
||||
task[].success[] = false
|
||||
else:
|
||||
task[].success[]=false
|
||||
task[].success[] = false
|
||||
error "Failed to verify proof", errorCode = res
|
||||
|
||||
proc asyncVerify*[H](
|
||||
@ -287,14 +287,14 @@ proc asyncVerify*[H](
|
||||
self.taskpool.spawn circomVerifyTask(taskPtr)
|
||||
|
||||
let threadFut = threadPtr.wait()
|
||||
|
||||
|
||||
if joinErr =? catch(await threadFut.join()).errorOption:
|
||||
if err=? catch(await noCancel threadFut).errorOption:
|
||||
return failure(err)
|
||||
if joinErr of CancelledError:
|
||||
raise joinErr
|
||||
else:
|
||||
return failure(joinErr)
|
||||
if err =? catch(await noCancel threadFut).errorOption:
|
||||
return failure(err)
|
||||
if joinErr of CancelledError:
|
||||
raise joinErr
|
||||
else:
|
||||
return failure(joinErr)
|
||||
|
||||
success()
|
||||
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import ../../asynctest
|
||||
|
||||
import std/atomics
|
||||
import pkg/chronos
|
||||
import pkg/libp2p/cid
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user