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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user