use upraises

This commit is contained in:
Dmitriy Ryajov 2022-03-18 12:14:43 -06:00
parent 703e711f51
commit 4aa62455fd
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
10 changed files with 26 additions and 13 deletions

View File

@ -7,7 +7,9 @@
## This file may not be copied, modified, or distributed except according to
## those terms.
{.push raises: [Defect].}
import pkg/upraises
push: {.upraises: [].}
import pkg/libp2p
import pkg/stew/byteutils

View File

@ -9,7 +9,9 @@
# TODO: This is super inneficient and needs a rewrite, but it'll do for now
{.push raises: [Defect].}
import pkg/upraises
push: {.upraises: [].}
import pkg/chronicles
import pkg/questionable

View File

@ -7,7 +7,7 @@
## This file may not be copied, modified, or distributed except according to
## those terms.
{.push raises: [Defect].}
push: {.upraises: [].}
import std/os
import std/options

View File

@ -7,7 +7,9 @@
## This file may not be copied, modified, or distributed except according to
## those terms.
{.push raises: [Defect].}
import pkg/upraises
push: {.upraises: [].}
import std/tables

View File

@ -7,7 +7,9 @@
## This file may not be copied, modified, or distributed except according to
## those terms.
{.push raises: [Defect].}
import pkg/upraises
push: {.upraises: [].}
import std/tables
import pkg/libp2p/protobuf/minprotobuf

View File

@ -7,7 +7,9 @@
## This file may not be copied, modified, or distributed except according to
## those terms.
{.push raises: [Defect].}
import pkg/upraises
push: {.upraises: [].}
import pkg/chronos
import pkg/libp2p
@ -26,7 +28,7 @@ method getBlock*(
## Get a block from the stores
##
doAssert(false, "Not implemented!")
raiseAssert("Not implemented!")
method putBlock*(
s: BlockStore,
@ -34,7 +36,7 @@ method putBlock*(
## Put a block to the blockstore
##
doAssert(false, "Not implemented!")
raiseAssert("Not implemented!")
method delBlock*(
s: BlockStore,
@ -42,7 +44,7 @@ method delBlock*(
## Delete a block/s from the block store
##
doAssert(false, "Not implemented!")
raiseAssert("Not implemented!")
method hasBlock*(s: BlockStore, cid: Cid): bool {.base.} =
## Check if the block exists in the blockstore

View File

@ -10,7 +10,6 @@
{.push raises: [Defect].}
import std/options
import std/sequtils
import pkg/chronicles
import pkg/chronos

View File

@ -7,7 +7,9 @@
## This file may not be copied, modified, or distributed except according to
## those terms.
{.push raises: [Defect].}
import pkg/upraises
push: {.upraises: [].}
import std/os

View File

@ -7,7 +7,9 @@
## This file may not be copied, modified, or distributed except according to
## those terms.
{.push raises: [Defect].}
import pkg/upraises
push: {.upraises: [].}
import pkg/chronicles
import pkg/chronos

View File

@ -9,7 +9,7 @@
## Partially taken from nim beacon chain
{.push raises: [Defect].}
push: {.upraises: [].}
import std/strutils