TP-5555 | account provision
This commit is contained in:
@@ -5,7 +5,6 @@ import (
|
||||
"crypto/tls"
|
||||
"cybertron/configs"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
elasticsearch8 "github.com/elastic/go-elasticsearch/v8"
|
||||
"log"
|
||||
"net/http"
|
||||
@@ -18,8 +17,6 @@ type ElasticSearchClient struct {
|
||||
}
|
||||
|
||||
func NewElasticClient(elasticConfig configs.ElasticConfig) (*ElasticSearchClient, error) {
|
||||
fmt.Println("elastic address %v", elasticConfig.Addresses)
|
||||
fmt.Println("elastic address %v", elasticConfig.Username)
|
||||
cfg := elasticsearch8.Config{
|
||||
Addresses: elasticConfig.Addresses,
|
||||
Username: elasticConfig.Username,
|
||||
|
||||
Reference in New Issue
Block a user