From ddfd1291429196f2ff704887d751c29dd9503d5d Mon Sep 17 00:00:00 2001 From: Nikolay Eskov Date: Wed, 21 Aug 2024 05:43:42 +0300 Subject: [PATCH] Fix lint. --- pkg/miner/scheduler/scheduler.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkg/miner/scheduler/scheduler.go b/pkg/miner/scheduler/scheduler.go index c23775926b..7dd92a1ff0 100644 --- a/pkg/miner/scheduler/scheduler.go +++ b/pkg/miner/scheduler/scheduler.go @@ -233,7 +233,7 @@ func (a internalImpl) scheduleWithoutVrf( " block base target: %d\n"+ "Generation accounts:", confirmedBlockHeight, confirmedBlock.BlockID().String(), - confirmedBlock.Timestamp, time.UnixMilli(int64(confirmedBlock.Timestamp)), + confirmedBlock.Timestamp, time.UnixMilli(int64(confirmedBlock.Timestamp)), // #nosec: used only for logging confirmedBlock.BaseTarget, ) var out []Emit @@ -293,9 +293,10 @@ func (a internalImpl) scheduleWithoutVrf( ts := confirmedBlock.Timestamp + delay zap.S().Debugf(" %s (%s): ", addr.String(), pk.String()) zap.S().Debugf(" Hit: %s (%s)", hit.String(), base58.Encode(source)) - zap.S().Debugf(" Generation Balance: %d", int(generatingBalance)) - zap.S().Debugf(" Delay: %d", int(delay)) - zap.S().Debugf(" Timestamp: %d (%s)", int(ts), common.UnixMillisToTime(int64(ts)).String()) + zap.S().Debugf(" Generation Balance: %d", generatingBalance) + zap.S().Debugf(" Delay: %d", delay) + zap.S().Debugf(" Timestamp: %d (%s)", + ts, common.UnixMillisToTime(int64(ts)).String()) // #nosec: used only for logging out = append(out, Emit{ Timestamp: ts, KeyPair: keyPair,