From 3274092a16c65c75d4c622b8a8ee9d7e129e436b Mon Sep 17 00:00:00 2001 From: Frank Chung Date: Thu, 3 Nov 2016 10:29:44 +0800 Subject: [PATCH] fix init after setSetting bug --- goworker.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/goworker.go b/goworker.go index a83d4a4..3d7b3c8 100644 --- a/goworker.go +++ b/goworker.go @@ -37,6 +37,8 @@ type WorkerSettings struct { } func SetSettings(settings WorkerSettings) { + // force the flags to be parsed first before setting the configs. + Init() workerSettings = settings }