[skip ci]Add comment for ListNode (#13346)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/13353/head
cai.zhang 2021-12-14 16:41:33 +08:00 committed by GitHub
parent 4d578f6c13
commit 302584c59c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ func (nm *NodeManager) PeekClient(meta Meta) (UniqueID, types.IndexNode) {
return nodeID, client
}
// ListNode list all IndexNodes in node manager.
func (nm *NodeManager) ListNode() []UniqueID {
nm.lock.Lock()
defer nm.lock.Unlock()