One more lint

This commit is contained in:
Chongyi Zheng 2024-04-28 23:47:49 -04:00
parent 75cd37990a
commit 1e5fa911bf
No known key found for this signature in database
GPG Key ID: 4B90B77407DA2359
1 changed files with 0 additions and 9 deletions

View File

@ -30,8 +30,6 @@ func (i *Indexer) createIndex(ctx context.Context) error {
createIndex, err := i.Client.Indices.Create(i.VersionedIndexName()).Request(&create.Request{
Mappings: i.mapping,
}).Do(ctx)
// .BodyString(i.mapping)
if err != nil {
return err
}
@ -45,13 +43,6 @@ func (i *Indexer) createIndex(ctx context.Context) error {
}
func (i *Indexer) initClient() (*elasticsearch.TypedClient, error) {
// opts := []elastic.ClientOptionFunc{
// elastic.SetURL(i.url),
// elastic.SetSniff(false),
// elastic.SetHealthcheckInterval(10 * time.Second),
// elastic.SetGzip(false),
// }
cfg := elasticsearch.Config{
Addresses: []string{i.url},
}