Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
nickeskov committed Aug 21, 2024
1 parent 8771bf4 commit 7b99c7b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/miner/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7b99c7b

Please sign in to comment.