1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-16 00:26:43 +00:00

update api iterface

This commit is contained in:
2020-07-11 14:04:20 +08:00
parent 71ab7bbb75
commit 7d33c85a1a
10 changed files with 106 additions and 152 deletions

View File

@@ -311,13 +311,9 @@ func (scheduler *SchedulerPriority) Summary() MsgSummary {
return summary
}
func (scheduler *SchedulerPriority) Enable() bool {
scheduler.enabled = true
return true
}
func (scheduler *SchedulerPriority) Disable() bool {
scheduler.enabled = false
func (scheduler *SchedulerPriority) SetEnabled(enabled bool) bool {
scheduler.enabled = enabled
log.Info("scheduler is set to ", enabled)
return true
}