Skip to content

Commit

Permalink
修复引用
Browse files Browse the repository at this point in the history
  • Loading branch information
papa-hexuan committed Oct 24, 2022
1 parent f05dbf4 commit cdd159e
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 434 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ require (
)

require (
git.dz11.com/vega/minerva v1.10.4
github.com/coocood/freecache v1.2.2
github.com/go-redis/redis/v8 v8.11.5
google.golang.org/protobuf v1.28.1
Expand Down
414 changes: 0 additions & 414 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/client/redisgo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"math/rand"

"github.com/douyu/jupiter/pkg/constant"
"github.com/douyu/jupiter/pkg/singleton"
"github.com/douyu/jupiter/pkg/core/constant"
"github.com/douyu/jupiter/pkg/core/singleton"

"github.com/douyu/jupiter/pkg/xlog"
"github.com/go-redis/redis/v8"
Expand Down
5 changes: 3 additions & 2 deletions pkg/client/redisgo/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import (
"sync"
"time"

"github.com/douyu/jupiter/pkg/governor"
prome "github.com/douyu/jupiter/pkg/metric"
prome "github.com/douyu/jupiter/pkg/core/metric"

"github.com/douyu/jupiter/pkg/server/governor"
jsoniter "github.com/json-iterator/go"

"github.com/go-redis/redis/v8"
Expand Down
18 changes: 6 additions & 12 deletions pkg/client/redisgo/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,19 @@ import (
"strings"
"time"

"github.com/douyu/jupiter/pkg/util/xstring"
prome "github.com/douyu/jupiter/pkg/core/metric"

"github.com/douyu/jupiter/pkg/core/xtrace"
"github.com/douyu/jupiter/pkg/util/xstring"
"github.com/douyu/jupiter/pkg/xlog"
"github.com/fatih/color"

"go.opentelemetry.io/otel"

"github.com/go-redis/redis/v8"
"github.com/spf13/cast"

"github.com/douyu/jupiter/pkg/xtrace"

"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/codes"
semconv "go.opentelemetry.io/otel/semconv/v1.12.0"
"go.opentelemetry.io/otel/trace"

prome "github.com/douyu/jupiter/pkg/metric"

"github.com/douyu/jupiter/pkg/xlog"
"github.com/go-redis/redis/v8"
)

type redigoContextKeyType struct{}
Expand Down
5 changes: 2 additions & 3 deletions pkg/client/redisgo/interceptor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ import (

"go.opentelemetry.io/otel/trace"

"github.com/douyu/jupiter/pkg/xtrace"
"github.com/douyu/jupiter/pkg/xtrace/jaeger"

"github.com/douyu/jupiter/pkg/conf"
"github.com/douyu/jupiter/pkg/core/xtrace"
"github.com/douyu/jupiter/pkg/core/xtrace/jaeger"

"github.com/go-redis/redis/v8"
)
Expand Down

0 comments on commit cdd159e

Please sign in to comment.