From 811c0757c48afe57208ba588fdd0940531a5229e Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 21 May 2024 00:03:30 +0800 Subject: [PATCH] chore: fix linter --- server/router/api/v1/v1.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/router/api/v1/v1.go b/server/router/api/v1/v1.go index b1c0e976..826e1708 100644 --- a/server/router/api/v1/v1.go +++ b/server/router/api/v1/v1.go @@ -61,8 +61,7 @@ func NewAPIV1Service(secret string, profile *profile.Profile, store *store.Store // RegisterGateway registers the gRPC-Gateway with the given Echo instance. func (s *APIV1Service) RegisterGateway(ctx context.Context, echoServer *echo.Echo) error { - conn, err := grpc.DialContext( - ctx, + conn, err := grpc.NewClient( fmt.Sprintf("%s:%d", s.Profile.Addr, s.Profile.Port), grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(100*1024*1024)),