From ac790dc6bb70af27a2b611c6490a775e83d9ed41 Mon Sep 17 00:00:00 2001 From: "zhenshan.cao" Date: Sun, 3 Oct 2021 08:45:55 +0800 Subject: [PATCH] [skip ci] fix golint error in common.go (#9112) Signed-off-by: zhenshan.cao --- internal/common/common.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/internal/common/common.go b/internal/common/common.go index 93780e77a2..cc479a9c55 100644 --- a/internal/common/common.go +++ b/internal/common/common.go @@ -19,10 +19,21 @@ package common // 102: ... const ( + // StartOfUserFieldID represents the starting ID of the user-defined field StartOfUserFieldID = 100 + + // RowIDField is the ID of the RowID field reserved by the system RowIDField = 0 + + // TimeStampField is the ID of the Timestamp field reserved by the system TimeStampField = 1 + + // RowIDFieldName defines the name of the RowID field RowIDFieldName = "RowID" + + // TimeStampFieldName defines the name of the Timestamp field TimeStampFieldName = "Timestamp" + + // DefaultShardsNum defines the default number of shards when creating a collection DefaultShardsNum = int32(2) )