Skip to content

Commit

Permalink
fix: load balance algorithm unmarshal error (#169)
Browse files Browse the repository at this point in the history
* fix: load balance algorithm unmarshal error

* fix goimports
  • Loading branch information
dk-lockdown committed Jun 22, 2022
1 parent 41f1105 commit 7819ce9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pkg/lb/load_balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ func (l *LoadBalanceAlgorithm) unmarshalText(text []byte) bool {
return true
}
if strings.EqualFold(alg, "RoundRobin") {
*l = Random
*l = RoundRobin
return true
}
if strings.EqualFold(alg, "RandomWeight") {
*l = Random
*l = RandomWeight
return true
}
return false
Expand Down
6 changes: 2 additions & 4 deletions pkg/tracing/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ package tracing
import (
"context"
"fmt"

"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/codes"

"os"

"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/codes"
"go.opentelemetry.io/otel/exporters/stdout/stdouttrace"
"go.opentelemetry.io/otel/sdk/resource"
traceSDK "go.opentelemetry.io/otel/sdk/trace"
Expand Down

0 comments on commit 7819ce9

Please sign in to comment.