Fix warnings
This commit is contained in:
parent
5bb87c4ecc
commit
339f7f04bc
|
@ -7,7 +7,6 @@
|
|||
## This file may not be copied, modified, or distributed except according to
|
||||
## those terms.
|
||||
|
||||
import std/sets
|
||||
import std/sequtils
|
||||
import chronos
|
||||
import ../blocktype
|
||||
|
@ -51,6 +50,8 @@ proc triggerChange(
|
|||
for handler in s.changeHandlers[changeType]:
|
||||
handler(evt)
|
||||
|
||||
{.push locks:"unknown".}
|
||||
|
||||
method getBlocks*(b: BlockStore, cid: seq[Cid]): Future[seq[Block]] {.base.} =
|
||||
## Get a block from the stores
|
||||
##
|
||||
|
@ -75,5 +76,7 @@ method delBlocks*(s: BlockStore, blocks: seq[Cid]) {.base.} =
|
|||
|
||||
s.triggerChange(ChangeType.Removed, blocks)
|
||||
|
||||
{.pop.}
|
||||
|
||||
proc contains*(s: BlockStore, blk: Cid): bool =
|
||||
s.hasBlock(blk)
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
import std/sets
|
||||
import std/sequtils
|
||||
import std/algorithm
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ suite "asynchronous tests":
|
|||
for item in data:
|
||||
await push(heap, item)
|
||||
|
||||
asyncCheck pushTask()
|
||||
asyncSpawn pushTask()
|
||||
|
||||
check heap.len == 5
|
||||
check heap[0] == 1 # because we haven't pushed 0 yet
|
||||
|
|
Loading…
Reference in New Issue