mirror of
https://github.com/logos-storage/logos-storage-nim-dht.git
synced 2026-01-02 13:33:08 +00:00
some formatting tweaks to make errors easier to grok
This commit is contained in:
parent
fdd02450aa
commit
3c940ea890
@ -70,7 +70,8 @@ proc cleanupExpired*(
|
||||
|
||||
proc cleanupOrphaned*(
|
||||
store: Datastore,
|
||||
batchSize = ExpiredCleanupBatch) {.async.} =
|
||||
batchSize = ExpiredCleanupBatch
|
||||
) {.async.} =
|
||||
trace "Cleaning up orphaned records"
|
||||
|
||||
let
|
||||
@ -109,8 +110,9 @@ proc cleanupOrphaned*(
|
||||
continue
|
||||
|
||||
let
|
||||
res = (await allFinished(toSeq(cidIter)))
|
||||
.filterIt( it.completed )
|
||||
queries = toSeq(cidIter)
|
||||
cids = await allFinished(queries)
|
||||
res = cids.filterIt( it.completed )
|
||||
.mapIt( it.read.get )
|
||||
.filterIt( it.key.isSome ).len
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user