fix some XDeclaredButNotUsed hints (#1027)

This commit is contained in:
tersec 2020-05-15 12:41:00 +00:00 committed by GitHub
parent 1916e1d2da
commit 74db0f3c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 3 deletions

View File

@ -226,7 +226,6 @@ proc init*(T: type BlockPool, db: BeaconChainDB,
tmpState.data.data.current_justified_checkpoint.epoch.compute_start_slot_at_epoch()
justifiedHead = headRef.atSlot(justifiedSlot)
head = Head(blck: headRef, justified: justifiedHead)
justifiedBlock = db.getBlock(justifiedHead.blck.root).get()
doAssert justifiedHead.slot >= finalizedHead.slot,
"justified head comes before finalized head - database corrupt?"

View File

@ -479,7 +479,7 @@ proc handleIncomingStream(network: Eth2Node,
mixin callUserHandler, RecType
type MsgRec = RecType(MsgType)
const msgName = typetraits.name(MsgType)
const msgName {.used.} = typetraits.name(MsgType)
## Uncomment this to enable tracing on all incoming requests
## You can include `msgNameLit` in the condition to select

View File

@ -34,7 +34,6 @@ when defined(serialization_tracing):
const
bytesPerChunk = 32
bitsPerChunk = bytesPerChunk * 8
maxChunkTreeDepth = 25
defaultMaxObjectSize = 1 * 1024 * 1024
type