From d7dc4e618bb890958da4bfcfe0475a8dc38f7c4f Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Thu, 30 Mar 2017 19:44:01 +0100 Subject: [PATCH] process opts on multiple init calls --- service.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/service.go b/service.go index afbe5f6d..1f49371e 100644 --- a/service.go +++ b/service.go @@ -60,6 +60,10 @@ func (s *service) Init(opts ...Option) { // so we can call cmd.Init once. select { case <-s.init: + // only process options + for _, o := range opts { + o(&s.opts) + } default: // close init close(s.init)