Skip to content

Commit

Permalink
Fix linter error on time.Until
Browse files Browse the repository at this point in the history
  • Loading branch information
claudijd committed Sep 12, 2022
1 parent 570feb7 commit 2ad0245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/db/governor.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (d *Database) GetChainGovernorDataForTime(logger *zap.Logger, now time.Time
return err
}

if p.ReleaseTime.Sub(time.Now()) > maxEnqueuedTime {
if time.Until(p.ReleaseTime) > maxEnqueuedTime {
p.ReleaseTime = now.Add(maxEnqueuedTime)
err := d.StorePendingMsg(p)
if err != nil {
Expand Down

0 comments on commit 2ad0245

Please sign in to comment.