diff --git a/internal/querynode/collection.go b/internal/querynode/collection.go index 3d928ddee9..eb60261d53 100644 --- a/internal/querynode/collection.go +++ b/internal/querynode/collection.go @@ -81,7 +81,7 @@ func (c *Collection) addPartitionID(partitionID UniqueID) { log.Debug("queryNode collection info after add a partition", zap.Int64("collectionID", c.id), zap.Int64s("partitions", c.partitionIDs), zap.Any("releasePartitions", c.releasedPartitions)) } -// removePartitionID remove the partition id from partition id list of collection +// removePartitionID removes the partition id from partition id list of collection func (c *Collection) removePartitionID(partitionID UniqueID) { tmpIDs := make([]UniqueID, 0) for _, id := range c.partitionIDs { @@ -92,7 +92,7 @@ func (c *Collection) removePartitionID(partitionID UniqueID) { c.partitionIDs = tmpIDs } -// addVChannels add virtual channels to collection +// addVChannels adds virtual channels to collection func (c *Collection) addVChannels(channels []Channel) { c.channelMu.Lock() defer c.channelMu.Unlock()