[skip ci] Add a function comment for AddDependency (#12829)

Signed-off-by: yun.zhang <yun.zhang@zilliz.com>

Co-authored-by: yun.zhang <yun.zhang@zilliz.com>
pull/12824/head
jaime 2021-12-07 09:44:11 +08:00 committed by GitHub
parent e4746e8c6e
commit 8d41448dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ func NewConnectionManager(session *sessionutil.Session) *ConnectionManager {
}
}
// AddDependency add a dependency by role name.
func (cm *ConnectionManager) AddDependency(roleName string) error {
if !cm.checkroleName(roleName) {
return errors.New("roleName is illegal")