Skip to content

Commit

Permalink
🔧 move the pooling detection lower
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Oct 27, 2022
1 parent b010b04 commit e0bb8d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ func DURL() string {
}

func Setup() {
if Os != nil {
Pooled = true
return
}

Pooled = false

var err error
var logMode = logger.Error
Expand All @@ -60,6 +54,12 @@ func Setup() {
}
}

if Os != nil {
Pooled = true
return
}

Pooled = false
if setting.Opensearch.Connect == "true" {
Os, err = opensearch.NewClient(opensearch.Config{
Transport: &http.Transport{
Expand Down

0 comments on commit e0bb8d8

Please sign in to comment.