mirror of
				https://github.com/go-micro/go-micro.git
				synced 2025-10-30 23:27:41 +02:00 
			
		
		
		
	Don't create new options, update
This commit is contained in:
		| @@ -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() | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user