mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-05 06:53:06 +00:00
Define raises pragma for the whole file
This commit is contained in:
parent
24cb4697e5
commit
1a499a7858
@ -1,3 +1,6 @@
|
||||
|
||||
{.push raises: [].}
|
||||
|
||||
import std/times
|
||||
import pkg/ethers
|
||||
import pkg/questionable
|
||||
@ -68,7 +71,7 @@ method stop*(clock: OnChainClock) {.async.} =
|
||||
await clock.trackedFutures.cancelTracked()
|
||||
clock.started = false
|
||||
|
||||
method now*(clock: OnChainClock): SecondsSince1970 {.raises: [].} =
|
||||
method now*(clock: OnChainClock): SecondsSince1970 =
|
||||
doAssert clock.started, "clock should be started before calling now()"
|
||||
return toUnix(getTime() + clock.offset)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user