broker/service: use wrapped micro client to authenticate requests (#1782)
This commit is contained in:
@@ -643,7 +643,7 @@ func (c *cmd) Before(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
// Setup broker options.
|
||||
brokerOpts := []broker.Option{}
|
||||
brokerOpts := []broker.Option{brokerSrv.Client(microClient)}
|
||||
if len(ctx.String("broker_address")) > 0 {
|
||||
brokerOpts = append(brokerOpts, broker.Addrs(ctx.String("broker_address")))
|
||||
}
|
||||
|
Reference in New Issue
Block a user