Skip to content

Commit 1240a39

Browse files
authored
Apply suggestions from code review
1 parent e4c48d1 commit 1240a39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eth/catalyst/simulated_beacon.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,11 @@ func NewSimulatedBeacon(period uint64, feeRecipient common.Address, eth *eth.Eth
126126
}
127127
}
128128

129-
// cap the dev mode period to a reasonable maximum value to avoid overflowing the time.Duration (int64) that it will occupy
129+
// cap the dev mode period to a reasonable maximum value to avoid
130+
// overflowing the time.Duration (int64) that it will occupy
130131
maxPeriod := uint64(math.MaxInt64 / time.Second)
131132
if period > maxPeriod {
132-
log.Warn(fmt.Sprintf("period exceeds maximum possible value (have: %d, max: %d). Sanitizing period to maximum possible value.", period, maxPeriod))
133+
log.Warn("sanitizing period exceeding maximum possible value", "was", period, "now", maxPeriod)
133134
period = maxPeriod
134135
}
135136

0 commit comments

Comments
 (0)