Skip to content

Commit

Permalink
go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
asim committed Jan 24, 2020
1 parent 49cc022 commit 2b18449
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (

"github.com/google/uuid"
"github.com/micro/go-micro/broker"
"github.com/micro/go-micro/util/pool"
"github.com/micro/go-micro/client/selector"
"github.com/micro/go-micro/codec"
raw "github.com/micro/go-micro/codec/bytes"
Expand All @@ -19,6 +18,7 @@ import (
"github.com/micro/go-micro/registry"
"github.com/micro/go-micro/transport"
"github.com/micro/go-micro/util/buf"
"github.com/micro/go-micro/util/pool"
)

type rpcClient struct {
Expand Down
6 changes: 3 additions & 3 deletions config/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ var (
}

DefaultRuntimes = map[string]func(...runtime.Option) runtime.Runtime{
"local": runtime.NewRuntime,
"local": runtime.NewRuntime,
}

DefaultStores = map[string]func(...store.Option) store.Store{
"memory": memStore.NewStore,
"service": svcStore.NewStore,
"memory": memStore.NewStore,
"service": svcStore.NewStore,
}

// used for default selection as the fall back
Expand Down
5 changes: 5 additions & 0 deletions debug/trace/trace.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ type Span struct {

type spanKey struct{}

var (
// Default tracer
DefaultTrace = NewTrace()
)

// FromContext returns a span from context
func FromContext(ctx context.Context) (*Span, bool) {
s, ok := ctx.Value(spanKey{}).(*Span)
Expand Down

0 comments on commit 2b18449

Please sign in to comment.