未验证 提交 41190c23 编写于 作者: S shaoyue 提交者: GitHub

[skip ci] Add comment for EventTypeCode (#13368)

Signed-off-by: Nshaoyue.chen <shaoyue.chen@zilliz.com>
上级 159f1257
......@@ -22,8 +22,10 @@ import (
"github.com/milvus-io/milvus/internal/proto/schemapb"
)
// EventTypeCode represents event type by code
type EventTypeCode int8
// EventTypeCode definitions
const (
DescriptorEventType EventTypeCode = iota
InsertEventType
......@@ -36,6 +38,7 @@ const (
EventTypeEnd
)
// String returns the string representation
func (code EventTypeCode) String() string {
codes := map[EventTypeCode]string{
DescriptorEventType: "DescriptorEventType",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册