broker/service: use wrapped micro client to authenticate requests (#1782)

This commit is contained in:
ben-toogood
2020-07-02 17:54:53 +01:00
committed by GitHub
parent b5314829fa
commit c58ac35dfc
3 changed files with 29 additions and 1 deletions

View File

@@ -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")))
}