mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-01-09 20:45:38 +00:00
Fix warnings
This commit is contained in:
parent
6a057a22b2
commit
b8e5f19d7e
@ -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…
x
Reference in New Issue
Block a user