From 34e2ce295ac44eeefed0df94f093c1e07dd9b884 Mon Sep 17 00:00:00 2001 From: amyangfei Date: Wed, 1 Mar 2023 10:53:10 +0800 Subject: [PATCH] Update pkg/sink/mysql/db_helper.go --- pkg/sink/mysql/db_helper.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/sink/mysql/db_helper.go b/pkg/sink/mysql/db_helper.go index 298ffe0796c..126fec9a9eb 100644 --- a/pkg/sink/mysql/db_helper.go +++ b/pkg/sink/mysql/db_helper.go @@ -168,7 +168,6 @@ func generateDSNByConfig( // set the `tidb_enable_external_ts_read` to `OFF`, so cdc could write to the sink dsnCfg.Params["tidb_enable_external_ts_read"] = fmt.Sprintf(`"%s"`, tidbEnableExternalTSRead) } - dsnClone := dsnCfg.Clone() dsnClone.Passwd = "******" log.Info("sink uri is configured", zap.String("dsn", dsnClone.FormatDSN()))