Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
x/ibc/light-clients: simplify max time comparison (cosmos#8089)
The prior code that tried to get the newest/larger time between the too performed: * 2 time.Time.UnixNano() retrievals: 2 multiplications, 2 additions * 1 math.Max comparison * 1 time.Unix(0, minTime) creation but really this code could just use native operations on: time.Time.After() simply. This now becomes a single operation, single comparison for the same effect.
- Loading branch information