mirror of
https://github.com/soypat/lneto.git
synced 2026-08-27 01:49:06 +00:00
chore: bump minimum Go version to 1.24 (#85)
Signed-off-by: Marvin Drees <marvin.drees@9elements.com>
This commit is contained in:
+2
-2
@@ -269,11 +269,11 @@ func (d Date) Time() (time.Time, error) {
|
||||
func CalculateSystemPrecision(nowNano func() int64, iters []int64) int8 {
|
||||
maxIter := len(iters)
|
||||
if nowNano == nil {
|
||||
for i := 0; i < maxIter; i++ {
|
||||
for i := range maxIter {
|
||||
iters[i] = time.Now().UnixNano()
|
||||
}
|
||||
} else {
|
||||
for i := 0; i < maxIter; i++ {
|
||||
for i := range maxIter {
|
||||
iters[i] = nowNano()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user