mirror of https://github.com/milvus-io/milvus.git
Improve comments in tso (#10446)
Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>pull/10470/head
parent
99d57beff8
commit
040be8da51
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue