diff --git a/node/pkg/db/governor.go b/node/pkg/db/governor.go index 940f2563df..7debbd464f 100644 --- a/node/pkg/db/governor.go +++ b/node/pkg/db/governor.go @@ -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 {