2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-10-22 09:56:12 +08:00

Change Server API

* Rename ServerStatus to ServerState internally

* Rename terminate to shutdown internally

* Update Scheduler API to match Server API
This commit is contained in:
Ken Hibino
2021-03-23 06:20:54 -07:00
parent dc275c4612
commit dd25028027
26 changed files with 175 additions and 169 deletions

View File

@@ -47,7 +47,7 @@ func newRecoverer(params recovererParams) *recoverer {
}
}
func (r *recoverer) terminate() {
func (r *recoverer) shutdown() {
r.logger.Debug("Recoverer shutting down...")
// Signal the recoverer goroutine to stop polling.
r.done <- struct{}{}