1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-12 22:07:47 +02:00
This commit is contained in:
Asim Aslam 2021-09-24 09:08:39 +01:00
parent 9deb715ebb
commit 12eff1cc60
3 changed files with 4 additions and 5 deletions

View File

@ -616,7 +616,7 @@ func (c *cmd) Before(ctx *cli.Context) error {
if name := ctx.String("config"); len(name) > 0 { if name := ctx.String("config"); len(name) > 0 {
// only change if we have the server and type differs // only change if we have the server and type differs
if r, ok := c.opts.Configs[name]; ok { if r, ok := c.opts.Configs[name]; ok {
rc , err := r() rc, err := r()
if err != nil { if err != nil {
logger.Fatalf("Error configuring config: %v", err) logger.Fatalf("Error configuring config: %v", err)
} }
@ -624,7 +624,6 @@ func (c *cmd) Before(ctx *cli.Context) error {
} }
} }
return nil return nil
} }

View File

@ -129,7 +129,7 @@ func TraceHandler(t trace.Tracer) server.HandlerWrapper {
} }
func AuthCall(a func() auth.Auth, c client.Client) client.Client { func AuthCall(a func() auth.Auth, c client.Client) client.Client {
return &authWrapper{Client:c, auth: a} return &authWrapper{Client: c, auth: a}
} }
type authWrapper struct { type authWrapper struct {