From f7c4304ac3eaa352209d31ad4617addfe14a3c15 Mon Sep 17 00:00:00 2001 From: Asim Date: Sat, 16 Jan 2016 23:10:14 +0000 Subject: [PATCH] Don't create new options, update --- broker/http_broker.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/broker/http_broker.go b/broker/http_broker.go index d50d8b12..c78c028d 100644 --- a/broker/http_broker.go +++ b/broker/http_broker.go @@ -257,13 +257,10 @@ func (h *httpBroker) Disconnect() error { } func (h *httpBroker) Init(opts ...Option) error { - var options Options for _, o := range opts { - o(&options) + o(&h.opts) } - h.opts = options - if len(h.id) == 0 { h.id = "broker-" + uuid.NewUUID().String() }