Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Sep 24, 2021
1 parent 9deb715 commit 12eff1c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -616,15 +616,14 @@ func (c *cmd) Before(ctx *cli.Context) error {
if name := ctx.String("config"); len(name) > 0 {
// only change if we have the server and type differs
if r, ok := c.opts.Configs[name]; ok {
rc , err := r()
rc, err := r()
if err != nil {
logger.Fatalf("Error configuring config: %v", err)
}
*c.opts.Config = rc
}
}


return nil
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"context"

"github.com/asim/go-micro/v3/auth"
"github.com/asim/go-micro/v3/broker"
"github.com/asim/go-micro/v3/cache"
Expand Down Expand Up @@ -228,7 +228,7 @@ func NewAuth(name string, t func(...auth.Option) auth.Auth) Option {
}

// New config func
func NewConfig(name string, t func(...config.Option) (config.Config, error)) Option {
func NewConfig(name string, t func(...config.Option) (config.Config, error)) Option {
return func(o *Options) {
o.Configs[name] = t
}
Expand Down
2 changes: 1 addition & 1 deletion util/wrapper/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func TraceHandler(t trace.Tracer) server.HandlerWrapper {
}

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 {
Expand Down

0 comments on commit 12eff1c

Please sign in to comment.