mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-08 01:58:34 +08:00
[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>
This commit is contained in:
parent
e4746e8c6e
commit
8d41448dbf
@ -88,6 +88,7 @@ func NewConnectionManager(session *sessionutil.Session) *ConnectionManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// AddDependency add a dependency by role name.
|
||||||
func (cm *ConnectionManager) AddDependency(roleName string) error {
|
func (cm *ConnectionManager) AddDependency(roleName string) error {
|
||||||
if !cm.checkroleName(roleName) {
|
if !cm.checkroleName(roleName) {
|
||||||
return errors.New("roleName is illegal")
|
return errors.New("roleName is illegal")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user