mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-04 04:49:08 +08:00
[skip ci] Add comment for newTaskScheduler (#9687)
Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
parent
aba9aa450d
commit
0855347576
@ -137,6 +137,7 @@ type TaskScheduler struct {
|
||||
cancel context.CancelFunc
|
||||
}
|
||||
|
||||
// NewTaskScheduler reloads tasks from kv and returns a new taskScheduler
|
||||
func NewTaskScheduler(ctx context.Context, meta Meta, cluster Cluster, kv *etcdkv.EtcdKV, rootCoord types.RootCoord, dataCoord types.DataCoord) (*TaskScheduler, error) {
|
||||
ctx1, cancel := context.WithCancel(ctx)
|
||||
taskChan := make(chan task, 1024)
|
||||
|
Loading…
Reference in New Issue
Block a user