mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-26 07:42:17 +08:00
Follow the convention of declaring variable immediately after its guard
mutex
This commit is contained in:
parent
5eaf606a0d
commit
d5c2b9b995
@ -11,9 +11,8 @@ import (
|
||||
|
||||
// Background is a top-level entity for the background-task processing.
|
||||
type Background struct {
|
||||
// running indicates whether processor and poller are both running.
|
||||
running bool
|
||||
mu sync.Mutex
|
||||
running bool
|
||||
|
||||
poller *poller
|
||||
processor *processor
|
||||
|
Loading…
Reference in New Issue
Block a user