Add ClusterStore implementation assertion (#9037)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/9048/head
congqixia 2021-10-01 23:48:54 +08:00 committed by GitHub
parent a9a4b89b0e
commit 2044e5eacb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -112,6 +112,9 @@ func (n *NodeInfo) Dispose() {
}
}
// make sure NodesInfo implements ClusterStore
var _ ClusterStore = (*NodesInfo)(nil)
// NodesInfo wraps a map UniqueID -> NodeInfo
// implements ClusterStore interface
// not lock related field is required so all operations shall be protected outside