Commit 811c0757 authored by Steven's avatar Steven

chore: fix linter

parent 464b00ea
...@@ -61,8 +61,7 @@ func NewAPIV1Service(secret string, profile *profile.Profile, store *store.Store ...@@ -61,8 +61,7 @@ func NewAPIV1Service(secret string, profile *profile.Profile, store *store.Store
// RegisterGateway registers the gRPC-Gateway with the given Echo instance. // RegisterGateway registers the gRPC-Gateway with the given Echo instance.
func (s *APIV1Service) RegisterGateway(ctx context.Context, echoServer *echo.Echo) error { func (s *APIV1Service) RegisterGateway(ctx context.Context, echoServer *echo.Echo) error {
conn, err := grpc.DialContext( conn, err := grpc.NewClient(
ctx,
fmt.Sprintf("%s:%d", s.Profile.Addr, s.Profile.Port), fmt.Sprintf("%s:%d", s.Profile.Addr, s.Profile.Port),
grpc.WithTransportCredentials(insecure.NewCredentials()), grpc.WithTransportCredentials(insecure.NewCredentials()),
grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(100*1024*1024)), grpc.WithDefaultCallOptions(grpc.MaxCallRecvMsgSize(100*1024*1024)),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment