fix_: Use UnixMilli()

This commit is contained in:
Vitaly Vlasov 2024-05-10 12:03:20 +03:00 committed by Vit∀ly Vlasov
parent d8a5665871
commit 20d3a7b69b
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ const keyBumpValue = uint64(10)
// GetCurrentTime64 returns the current unix time in milliseconds // GetCurrentTime64 returns the current unix time in milliseconds
func GetCurrentTime() uint64 { func GetCurrentTime() uint64 {
return (uint64)(time.Now().UnixNano() / int64(time.Second)) return (uint64)(time.Now().UnixMilli())
} }
// bumpKeyID takes a timestampID and returns its value incremented by the keyBumpValue // bumpKeyID takes a timestampID and returns its value incremented by the keyBumpValue