mirror of
https://github.com/hibiken/asynq.git
synced 2024-12-27 00:02:19 +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.
|
// 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
|
||||||
|
Loading…
Reference in New Issue
Block a user