From dbd31655568a87a0b7d2fae37155a798a123389b Mon Sep 17 00:00:00 2001 From: MobarakHsn Date: Fri, 31 May 2024 20:13:12 +0600 Subject: [PATCH] Remove dbtype for Pgbouncer Signed-off-by: MobarakHsn --- pgbouncer/kubedb_client_builder.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pgbouncer/kubedb_client_builder.go b/pgbouncer/kubedb_client_builder.go index e17e614a..d0823b97 100644 --- a/pgbouncer/kubedb_client_builder.go +++ b/pgbouncer/kubedb_client_builder.go @@ -46,7 +46,6 @@ type KubeDBClientBuilder struct { pgbouncer *api.PgBouncer url string podName string - backendDBType string backendDBName string ctx context.Context databaseRef *api.Database @@ -106,7 +105,7 @@ func (o *KubeDBClientBuilder) GetPgBouncerXormClient() (*XormClient, error) { return nil, err } - engine, err := xorm.NewEngine(o.backendDBType, connector) + engine, err := xorm.NewEngine(DefaultBackendDBType, connector) if err != nil { return nil, err } @@ -175,9 +174,6 @@ func (o *KubeDBClientBuilder) getConnectionString() (string, error) { o.url = o.getURL() } - if o.backendDBType == "" { - o.backendDBType = DefaultBackendDBType - } var listeningPort int = api.PgBouncerDatabasePort if o.pgbouncer.Spec.ConnectionPool.Port != nil { listeningPort = int(*o.pgbouncer.Spec.ConnectionPool.Port)