fix: too many requests may occur.

This commit is contained in:
Vincent Young 2023-02-18 19:34:52 +08:00
parent 9e793ae4de
commit 2a09c98368

View File

@ -78,6 +78,7 @@ func getRandomNumber() int64 {
func getTimeStamp(i_count int64) int64 {
ts := time.Now().UnixMilli()
if i_count != 0 {
i_count = i_count + 1
return ts - ts%i_count + i_count
} else {
return ts