Chore: Extract DatabaseConfig parsing from SQLStore (#81157)

Extract the parsing/creating of database config/connectiong from SQLStore string 
to a separate DatabaseConfig struct.
This commit is contained in:
Marcus Efraimsson
2024-01-24 16:49:49 +01:00
committed by GitHub
parent 3b96eb854a
commit 20fe0eb173
5 changed files with 377 additions and 373 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ import (
var tlslog = log.New("tls_mysql")
func makeCert(config DatabaseConfig) (*tls.Config, error) {
func makeCert(config *DatabaseConfig) (*tls.Config, error) {
rootCertPool := x509.NewCertPool()
pem, err := os.ReadFile(config.CaCertPath)
if err != nil {