Skip to content

Commit

Permalink
时间轮数据结构由环形链表改为数组存储,提高访问效率
Browse files Browse the repository at this point in the history
  • Loading branch information
ouqiang committed May 15, 2017
1 parent c9eb4e3 commit a7fd364
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion routers/routers.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func Register(m *macaron.Macaron) {
m.Group("/api/v1", func() {
m.Route("/tasklog/update-status", "GET,POST", tasklog.UpdateStatus)
m.Post("/tasklog/remove/:id", tasklog.Remove)
m.Post("/delaytask/create", delaytask.Create)
m.Post("/delaytask/push", delaytask.Create)
m.Post("/delaytask/remove/:id", delaytask.Remove)
});

Expand Down
30 changes: 17 additions & 13 deletions vendor/github.com/ouqiang/timewheel/timewheel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a7fd364

Please sign in to comment.