From 3aabc1d3eedfb0a3bef1f8233134da455474659c Mon Sep 17 00:00:00 2001 From: XuanYang-cn Date: Fri, 24 Sep 2021 21:43:56 +0800 Subject: [PATCH] [skip-ci]Fix golint in type_def.go (#8464) Signed-off-by: yangxuan --- internal/datanode/type_def.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/internal/datanode/type_def.go b/internal/datanode/type_def.go index 9db66f0755..4527fd4af1 100644 --- a/internal/datanode/type_def.go +++ b/internal/datanode/type_def.go @@ -14,12 +14,20 @@ package datanode import "github.com/milvus-io/milvus/internal/util/typeutil" type ( - UniqueID = typeutil.UniqueID - Timestamp = typeutil.Timestamp + // UniqueID is type int64 + UniqueID = typeutil.UniqueID + + // Timestamp is type uint64 + Timestamp = typeutil.Timestamp + + // IntPrimaryKey is type int64 IntPrimaryKey = typeutil.IntPrimaryKey - DSL = string + + // DSL is type string + DSL = string ) +// TimeRange is a range of timestamp contains the min-timestamp and max-timestamp type TimeRange struct { timestampMin Timestamp timestampMax Timestamp