mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-13 23:09:02 +00:00
Show completed tasks per second
This commit is contained in:
@@ -63,6 +63,7 @@ func (api *WebAPI) SubmitTask(r *Request) {
|
||||
Message: "Too many requests",
|
||||
RateLimitDelay: delay,
|
||||
}, 429)
|
||||
reservation.Cancel()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -114,6 +115,7 @@ func (api *WebAPI) GetTaskFromProject(r *Request) {
|
||||
Message: "Too many requests",
|
||||
RateLimitDelay: delay,
|
||||
}, 429)
|
||||
reservation.Cancel()
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user