mirror of https://github.com/go-gitea/gitea.git
One more lint
This commit is contained in:
parent
75cd37990a
commit
1e5fa911bf
|
@ -30,8 +30,6 @@ func (i *Indexer) createIndex(ctx context.Context) error {
|
||||||
createIndex, err := i.Client.Indices.Create(i.VersionedIndexName()).Request(&create.Request{
|
createIndex, err := i.Client.Indices.Create(i.VersionedIndexName()).Request(&create.Request{
|
||||||
Mappings: i.mapping,
|
Mappings: i.mapping,
|
||||||
}).Do(ctx)
|
}).Do(ctx)
|
||||||
|
|
||||||
// .BodyString(i.mapping)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -45,13 +43,6 @@ func (i *Indexer) createIndex(ctx context.Context) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *Indexer) initClient() (*elasticsearch.TypedClient, 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{
|
cfg := elasticsearch.Config{
|
||||||
Addresses: []string{i.url},
|
Addresses: []string{i.url},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue