From 003a7ed7ccff9568d7720c8735cca93a47b4a8b3 Mon Sep 17 00:00:00 2001 From: sunby Date: Thu, 14 Oct 2021 21:26:33 +0800 Subject: [PATCH] [skip ci]Add comment for MarshalLogObject (#9920) Signed-off-by: sunby --- internal/datacoord/channel_store.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/datacoord/channel_store.go b/internal/datacoord/channel_store.go index 3abbd96fca..9013601156 100644 --- a/internal/datacoord/channel_store.go +++ b/internal/datacoord/channel_store.go @@ -295,6 +295,7 @@ func parseNodeID(key string) (int64, error) { // ChannelOpTypeNames implements zap log marshaler for ChannelOpSet var ChannelOpTypeNames = []string{"Add", "Delete"} +// MarshalLogObject implements the interface ObjectMarshaler func (cu *ChannelOp) MarshalLogObject(enc zapcore.ObjectEncoder) error { enc.AddString("type", ChannelOpTypeNames[cu.Type]) enc.AddInt64("nodeID", cu.NodeID)