Code cleanup
This commit is contained in:
parent
71a2ca9e7c
commit
add13c2646
@ -375,7 +375,6 @@ func GossipSub(in GossipIn) (service *pubsub.PubSub, err error) {
|
||||
jsonTransport := tracer.NewJsonTracerTransport(out)
|
||||
transports = append(transports, jsonTransport)
|
||||
}
|
||||
|
||||
if in.Cfg.ElasticSearchTracer != "" {
|
||||
elasticSearchTransport, err := tracer.NewElasticSearchTransport()
|
||||
if err != nil {
|
||||
|
@ -48,7 +48,7 @@ func (est *elasticSearchTransport) Transport(event TracerTransportEvent) error {
|
||||
|
||||
jsonEvent, err := json.Marshal(e)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error while marshaling peer score: %s", err)
|
||||
return fmt.Errorf("error while marshaling event: %s", err)
|
||||
}
|
||||
|
||||
req := esapi.IndexRequest{
|
||||
|
Loading…
Reference in New Issue
Block a user