milvus/internal/master/scheduler.go
bigsheeper 9131a5554a Add etcd, metaTable and scheduler in master
Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
2020-10-29 12:39:41 +08:00

21 lines
370 B
Go

package master
type ddRequestScheduler struct {
reqQueue chan *task
scheduleTimeStamp Timestamp
}
func NewDDRequestScheduler() *ddRequestScheduler {
const channelSize = 1024
rs := ddRequestScheduler{
reqQueue: make(chan *task, channelSize),
}
return &rs
}
func (rs *ddRequestScheduler) Enqueue(task *task) error {
rs.reqQueue <- task
return nil
}