[skip ci] Add comment for getCollectionByIDPrivate (#9659)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
bigsheeper 2021-10-11 19:02:45 +08:00 committed by GitHub
parent 2cba5053a8
commit 1b128c3fbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,6 +181,7 @@ func (colReplica *collectionReplica) getCollectionByID(collectionID UniqueID) (*
return colReplica.getCollectionByIDPrivate(collectionID)
}
// getCollectionByIDPrivate is the private function in collectionReplica, to get collection from collectionReplica
func (colReplica *collectionReplica) getCollectionByIDPrivate(collectionID UniqueID) (*Collection, error) {
collection, ok := colReplica.collections[collectionID]
if !ok {