mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-02-26 08:23:08 +00:00
Use valueError instead of assert
This commit is contained in:
parent
d70f8ee79c
commit
30ba4bd3d4
@ -38,7 +38,7 @@ proc loopDisarm*(loop: LoopMeasure, name: string) =
|
||||
|
||||
if loop.maxUs > 250_000:
|
||||
error "LoopMeasure upper threshold breached"
|
||||
raiseAssert "AAA"
|
||||
raise newException(ValueError, "threshold breached")
|
||||
|
||||
proc startMeasure*(loop: LoopMeasure) =
|
||||
loop.current = getMonoTime().ticks
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user