From dfec643ea4b71bfae2bc18922720a2d1a3c4ea95 Mon Sep 17 00:00:00 2001 From: copy rogers <40619032+rogerogers@users.noreply.github.com> Date: Mon, 10 Jun 2024 10:24:53 +0800 Subject: [PATCH] chore(gomall): update clientsuite --- gomall/common/clientsuite/client.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gomall/common/clientsuite/client.go b/gomall/common/clientsuite/client.go index b93ec72..87e7603 100644 --- a/gomall/common/clientsuite/client.go +++ b/gomall/common/clientsuite/client.go @@ -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" @@ -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),