2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-11-10 11:31:58 +08:00

Follow the convention of declaring variable immediately after its guard

mutex
This commit is contained in:
Ken Hibino 2019-11-23 20:18:39 -08:00
parent 5eaf606a0d
commit d5c2b9b995

View File

@ -11,9 +11,8 @@ import (
// Background is a top-level entity for the background-task processing. // Background is a top-level entity for the background-task processing.
type Background struct { type Background struct {
// running indicates whether processor and poller are both running.
running bool
mu sync.Mutex mu sync.Mutex
running bool
poller *poller poller *poller
processor *processor processor *processor