修改不能bee不能读取配置的bug

This commit is contained in:
郝大全
2017-06-28 18:25:10 +08:00
parent 23be458a95
commit fbd1f9e1a7
2 changed files with 7 additions and 5 deletions

View File

@@ -13,12 +13,13 @@ type RemoveCheckFunc func(e *Entry) bool
// Cron keeps track of any number of entries, invoking the associated func as
// specified by the schedule. It may be started, stopped, and the entries may
// be inspected while running.
// Cron保持任意数量的条目的轨道调用相关的func时间表指定。它可以被启动停止和条目可运行的同时进行检查。
type Cron struct {
entries []*Entry
stop chan struct{}
add chan *Entry
entries []*Entry //任务
stop chan struct{} //停止的通道
add chan *Entry //添加新任务的方式
remove chan RemoveCheckFunc
snapshot chan []*Entry
snapshot chan []*Entry //请求获取任务快照的方式
running bool
}