Skip to content

Commit

Permalink
chore: disable xgrpclog due to data race
Browse files Browse the repository at this point in the history
  • Loading branch information
sysulq committed Oct 19, 2022
1 parent cf8f877 commit 9f83c42
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/client/grpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,15 @@ import (
"time"

"github.com/douyu/jupiter/pkg/client/grpc/resolver"
"github.com/douyu/jupiter/pkg/conf"
"github.com/douyu/jupiter/pkg/ecode"
"github.com/douyu/jupiter/pkg/xlog"
"go.uber.org/zap/zapgrpc"
"google.golang.org/grpc"
"google.golang.org/grpc/grpclog"
)

func init() {
conf.OnLoaded(func(c *conf.Configuration) {
grpclog.SetLoggerV2(zapgrpc.NewLogger(xlog.Jupiter().With(xlog.FieldMod("grpc"))))
})
// conf.OnLoaded(func(c *conf.Configuration) {
// xgrpclog.SetLogger(xlog.Jupiter().With(xlog.FieldMod("grpc")))
// })
}

func newGRPCClient(config *Config) *grpc.ClientConn {
Expand Down

0 comments on commit 9f83c42

Please sign in to comment.