Skip to content

Commit

Permalink
docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
DanPlayer committed May 10, 2022
1 parent 1ec68d5 commit e3fc1e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ func TestSimpleExample(t *testing.T) {
OutTimeAct: true,
})
// check for exception shutdown and restart watch task
err := watch.CheckRestart(func(c timewatch.Watch) {
fmt.Println(c)
fmt.Println("do that u want")
})
// start watch service
err := watch.Start()
if err != nil {
fmt.Println(err)
}
Expand Down
7 changes: 2 additions & 5 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ func TestSimpleExample(t *testing.T) {
OutTimeAct: true, // 重启异常失败的监控时是否执行已经失效的计划
})
// 检查异常关闭的监控计划而且重启它们(不需要重启异常的监控计划可以不使用)
err := watch.CheckRestart(func(c timewatch.Watch) {
fmt.Println(c)
fmt.Println("do that u want")
})
// 开启监控服务
err := watch.Start()
if err != nil {
fmt.Println(err)
}
Expand Down

0 comments on commit e3fc1e1

Please sign in to comment.