Skip to content

Clickhouse TLS cleanup #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Clickhouse TLS cleanup #71

wants to merge 1 commit into from

Conversation

metachris
Copy link
Contributor

No description provided.

@metachris metachris force-pushed the clickhouse-cleanup branch from 7894607 to 4e6f800 Compare June 26, 2025 07:18
Comment on lines 71 to 77
ch.conn, err = clickhouse.Open(&clickhouse.Options{
Addr: options.Addr,
Auth: options.Auth,
TLS: chTLS,
TLS: options.TLS,
Debugf: func(format string, v ...interface{}) {
ch.log.Infof("Clickhouse debug: "+format, v...)
},
Copy link
Contributor

@ilyaluk ilyaluk Jun 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be simpler (and will preserve all other options supported in DSN, including skip_verify):

	options.Debugf = func(format string, v ...any) {
		ch.log.Infof("Clickhouse debug: "+format, v...)
	}
	ch.conn, err = clickhouse.Open(options)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants