make CI happpy with format

This commit is contained in:
cortze 2023-05-17 14:58:53 +02:00
parent d400d33b1e
commit fa8792a65e

View File

@ -1,10 +1,10 @@
package tracer package tracer
import ( import (
"bytes"
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"bytes"
"net/url" "net/url"
"time" "time"
@ -32,8 +32,8 @@ func NewElasticSearchTransport(connectionString string, elasticsearchIndex strin
Addresses: []string{ Addresses: []string{
conUrl.Scheme + "://" + conUrl.Host, conUrl.Scheme + "://" + conUrl.Host,
}, },
Username: username, Username: username,
Password: password, Password: password,
Transport: &FastHttpTransport{}, Transport: &FastHttpTransport{},
} }
@ -65,15 +65,15 @@ func NewElasticSearchTransport(connectionString string, elasticsearchIndex strin
} }
return &elasticSearchTransport{ return &elasticSearchTransport{
cl: es, cl: es,
bi: bi, bi: bi,
esIndex: esIndex, esIndex: esIndex,
}, nil }, nil
} }
type elasticSearchTransport struct { type elasticSearchTransport struct {
cl *elasticsearch.Client cl *elasticsearch.Client
bi esutil.BulkIndexer bi esutil.BulkIndexer
esIndex string esIndex string
} }