[skip ci]Add comment for ChannelOpTypeNames (#9919)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/9684/head
sunby 2021-10-14 21:24:41 +08:00 committed by GitHub
parent 2617b0f2a9
commit 3a6f6d399f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ func parseNodeID(key string) (int64, error) {
return strconv.ParseInt(s[len(s)-2], 10, 64)
}
// Implement zap log marshaler for ChannelOpSet
// ChannelOpTypeNames implements zap log marshaler for ChannelOpSet
var ChannelOpTypeNames = []string{"Add", "Delete"}
func (cu *ChannelOp) MarshalLogObject(enc zapcore.ObjectEncoder) error {