Skip to content

Commit 5f50dfa

Browse files
Phani Rajnickvanw
andauthored
Apply suggestions from code review
Co-authored-by: Nick Van Wiggeren <nickvanw@users.noreply.github.com>
1 parent ba78981 commit 5f50dfa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cmd/internal/planetscale_edge_database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ type PlanetScaleEdgeDatabase struct {
4141

4242
func (p PlanetScaleEdgeDatabase) CanConnect(ctx context.Context, psc PlanetScaleSource) error {
4343
if err := p.isEdgePassword(ctx, psc); err != nil {
44-
return errors.New("Unable to reach connect enabled query endpoint for PlanetScale. Please ensure that your organization is enrolled in the Connect beta.")
44+
return errors.New("This password will not function with PlanetScale Connect. Please ensure that your organization is enrolled in the Connect beta. ")
4545
}
4646

4747
return p.Mysql.PingContext(ctx, psc)
4848
}
4949

50-
func (p PlanetScaleEdgeDatabase) isEdgePassword(ctx context.Context, psc PlanetScaleSource) error {
50+
func (p PlanetScaleEdgeDatabase) checkEdgePassword(ctx context.Context, psc PlanetScaleSource) error {
5151
reqCtx, cancel := context.WithTimeout(ctx, 2*time.Second)
5252
defer cancel()
5353
req, err := http.NewRequestWithContext(reqCtx, http.MethodGet, fmt.Sprintf("https://%v", psc.Host), nil)

0 commit comments

Comments
 (0)