Improve comments in tso (#10446)

Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>
pull/10470/head
Xiangyu Wang 2021-10-22 17:37:12 +08:00 committed by GitHub
parent 99d57beff8
commit 040be8da51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -101,8 +101,8 @@ func (t *timestampOracle) InitTimestamp() error {
}
next := time.Now()
//If the current system time minus the saved etcd timestamp is less than `updateTimestampGuard`,
//the timestamp allocation will start from the saved etcd timestamp temporarily.
// If the current system time minus the saved etcd timestamp is less than `updateTimestampGuard`,
// the timestamp allocation will start from the saved etcd timestamp temporarily.
if typeutil.SubTimeByWallClock(next, last) < updateTimestampGuard {
next = last.Add(updateTimestampGuard)
}