mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-12 22:07:47 +02:00
go fmt
This commit is contained in:
parent
9deb715ebb
commit
12eff1cc60
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user