mirror of
https://github.com/hibiken/asynq.git
synced 2025-08-27 16:01:45 +08:00
Follow the convention of declaring variable immediately after its guard
mutex
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user