Skip to content
This repository was archived by the owner on Oct 7, 2022. It is now read-only.

Commit b8a93dd

Browse files
committed
fix(elasticsearch): set scheme on opts
1 parent 2ebd2af commit b8a93dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elasticsearch/elasticsearch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (d recordDatabase) GetClient() *elastic.Client {
4343
opts = append(opts, elastic.SetHttpClient(&http.Client{Transport: insecureTr}))
4444
}
4545
if d.config.Scheme == "https" { // http is default
46-
elastic.SetScheme(d.config.Scheme)
46+
opts = append(opts, elastic.SetScheme(d.config.Scheme))
4747
}
4848
client, err := elastic.NewClient(opts...)
4949
if err != nil {

0 commit comments

Comments
 (0)