diff --git a/repo/tid.go b/repo/tid.go index 4ab31d410..eb648eea9 100644 --- a/repo/tid.go +++ b/repo/tid.go @@ -30,8 +30,8 @@ func NextTID() string { t := uint64(time.Now().UnixMicro()) ltLock.Lock() - if lastTime == t { - t++ + if lastTime >= t { + t = lastTime + 1 } lastTime = t