Closed aomerk closed 2 years ago
To compute a game's deadline, we are giving it a default maximum duration of 24 hours, which is defined as:
MaxTurnDurationInSeconds = time.Duration(24 * 3_600 * 1000_000_000) // 1 day
However, 24 * 3600 * 1e9 is a day in nanoseconds, I think we should rename:
24 * 3600 * 1e9
MaxTurnDurationInSeconds to MaxTurnDuration
MaxTurnDurationInSeconds
MaxTurnDuration
Since, A) It's actually nanoseconds B) Nanosecond unit is implied within the term Duration
Duration
Thank you.
To compute a game's deadline, we are giving it a default maximum duration of 24 hours, which is defined as:
However,
24 * 3600 * 1e9
is a day in nanoseconds, I think we should rename:MaxTurnDurationInSeconds
toMaxTurnDuration
Since, A) It's actually nanoseconds B) Nanosecond unit is implied within the term
Duration