runable
This commit is contained in:
@@ -60,13 +60,13 @@ func run() error {
|
||||
}
|
||||
defer redisClient.Close()
|
||||
|
||||
chMain, err := repo.NewClickHouse(ctx, cfg.ClickHouseAddr, cfg.ClickHouseDB, cfg.ClickHouseUser, cfg.ClickHousePassword)
|
||||
chMain, err := repo.NewClickHouse(ctx, cfg.ClickHouseAddr, cfg.ClickHouseDB, cfg.ClickHouseUser, cfg.ClickHousePassword, cfg.ClickHouseSecure)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
defer func() { _ = chMain.Close() }()
|
||||
|
||||
chRO, err := repo.NewClickHouseReadOnly(ctx, cfg.ClickHouseAddr, cfg.ClickHouseDB, cfg.ClickHouseSQLUser, cfg.ClickHouseSQLPassword)
|
||||
chRO, err := repo.NewClickHouseReadOnly(ctx, cfg.ClickHouseAddr, cfg.ClickHouseDB, cfg.ClickHouseSQLUser, cfg.ClickHouseSQLPassword, cfg.ClickHouseSecure)
|
||||
if err != nil {
|
||||
// Read-only user might not be provisioned in dev. Log + fall back to
|
||||
// the main connection so /query/sql still works locally; production
|
||||
|
||||
Reference in New Issue
Block a user