From 63ba4d4c4b23d1a311bf10531443a3996b70a28e Mon Sep 17 00:00:00 2001 From: Tristan-Wilson <87238672+Tristan-Wilson@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:55:46 +0100 Subject: [PATCH] Update timeboost/roundtiminginfo.go Co-authored-by: Ganesh Vanahalli --- timeboost/roundtiminginfo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timeboost/roundtiminginfo.go b/timeboost/roundtiminginfo.go index d511f116c6..037b44e4cf 100644 --- a/timeboost/roundtiminginfo.go +++ b/timeboost/roundtiminginfo.go @@ -98,7 +98,7 @@ func (info *RoundTimingInfo) TimeTilNextRound() time.Duration { // TimeTilNextRoundAt returns the time til the next round, // where the next round is determined from the timestamp passed in. func (info *RoundTimingInfo) TimeTilNextRoundAt(currentTime time.Time) time.Duration { - return time.Until(info.TimeOfNextRoundAt(currentTime)) + return info.TimeOfNextRoundAt(currentTime).Sub(currentTime) } func (info *RoundTimingInfo) TimeOfNextRound() time.Time {