From c673628365d663bb1996970af504a5e001f2bd8f Mon Sep 17 00:00:00 2001 From: Tomek Urbaszek Date: Mon, 16 Mar 2020 10:22:34 +0100 Subject: [PATCH] Fix typos in MySQL scaler (#683) --- pkg/scalers/mysql_scaler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/scalers/mysql_scaler.go b/pkg/scalers/mysql_scaler.go index dc43a088c1a..b1a2c61916b 100644 --- a/pkg/scalers/mysql_scaler.go +++ b/pkg/scalers/mysql_scaler.go @@ -46,7 +46,7 @@ func NewMySQLScaler(resolvedEnv, metadata, authParams map[string]string) (Scaler conn, err := newMySQLConnection(meta) if err != nil { - return nil, fmt.Errorf("error establishing MySQL connectionString: %s", err) + return nil, fmt.Errorf("error establishing MySQL connection: %s", err) } return &mySQLScaler{ metadata: meta, @@ -145,7 +145,7 @@ func newMySQLConnection(meta *mySQLMetadata) (*sql.DB, error) { } err = db.Ping() if err != nil { - mySQLLog.Error(err, fmt.Sprintf("Found error when pinging databse: %s", err)) + mySQLLog.Error(err, fmt.Sprintf("Found error when pinging database: %s", err)) return nil, err } return db, nil