Skip to content

Commit

Permalink
chore(gomall): update clientsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerogers authored Jun 10, 2024
1 parent b8a94b6 commit dfec643
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gomall/common/clientsuite/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
package clientsuite

import (
checkoututils "github.com/cloudwego/biz-demo/gomall/app/checkout/utils"
"github.com/cloudwego/kitex/client"
"github.com/cloudwego/kitex/pkg/rpcinfo"
"github.com/cloudwego/kitex/pkg/transmeta"
Expand All @@ -31,7 +30,9 @@ type CommonGrpcClientSuite struct {

func (s CommonGrpcClientSuite) Options() []client.Option {
r, err := consul.NewConsulResolver(s.RegistryAddr)
checkoututils.MustHandleError(err)
if err != nil {
panic(err)
}
opts := []client.Option{
client.WithResolver(r),
client.WithMetaHandler(transmeta.ClientHTTP2Handler),
Expand Down

0 comments on commit dfec643

Please sign in to comment.