From d5c2b9b9954e2640e4f18d671b201fd9c585fada Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Sat, 23 Nov 2019 20:18:39 -0800 Subject: [PATCH] Follow the convention of declaring variable immediately after its guard mutex --- background.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/background.go b/background.go index 44a6721..c586e1c 100644 --- a/background.go +++ b/background.go @@ -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