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 bdb3e82 commit 9572321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/miner/scheduler/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ 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())

Check failure on line 298 in pkg/miner/scheduler/scheduler.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

G115: integer overflow conversion uint64 -> int64 (gosec)
out = append(out, Emit{
Timestamp: ts,
KeyPair: keyPair,
Expand Down

0 comments on commit 9572321

Please sign in to comment.