mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-03 20:39:36 +08:00
c71cd40f68
Signed-off-by: sunby <bingyi.sun@zilliz.com>
31 lines
491 B
Go
31 lines
491 B
Go
package master
|
|
|
|
type persistenceScheduler interface {
|
|
Enqueue(interface{}) error
|
|
schedule(interface{}) error
|
|
scheduleLoop()
|
|
|
|
Start() error
|
|
Close()
|
|
}
|
|
type MockFlushScheduler struct {
|
|
}
|
|
|
|
func (m *MockFlushScheduler) Enqueue(i interface{}) error {
|
|
return nil
|
|
}
|
|
|
|
func (m *MockFlushScheduler) schedule(i interface{}) error {
|
|
return nil
|
|
}
|
|
|
|
func (m *MockFlushScheduler) scheduleLoop() {
|
|
}
|
|
|
|
func (m *MockFlushScheduler) Start() error {
|
|
return nil
|
|
}
|
|
|
|
func (m *MockFlushScheduler) Close() {
|
|
}
|