(minor) self call to NowUnixNano in TimeCache for Now

This commit is contained in:
Širhoe Biazhkovič
2022-11-16 20:04:02 +03:00
parent 0cbc5854cd
commit 5b5bd57348
+1 -1
View File
@@ -71,7 +71,7 @@ func (t *TimeCache) Stop() {
// Now returns the cached time as a time.Time value.
func (t *TimeCache) Now() time.Time {
return time.Unix(0, t.clock.Load())
return time.Unix(0, t.NowUnixNano())
}
// NowUnixNano returns the cached time as nanoseconds since the Unix Epoch.