Skip to content

Commit

Permalink
tracer: move es transport to net/http + format
Browse files Browse the repository at this point in the history
  • Loading branch information
cortze committed May 22, 2023
1 parent bb92984 commit 42d2f4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 76 deletions.
2 changes: 1 addition & 1 deletion node/modules/lp2p/pubsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ func (trw *tracerWrapper) Trace(evt *pubsub_pb.TraceEvent) {
}
}
// check if there was any of the Iwant msgs
validIwant := len(iwant) > 0
validIwant := len(iwant) > 0

// trace the msgs if any of the flags was triggered
if validIhave || validIwant || validTopic {
Expand Down
3 changes: 2 additions & 1 deletion node/modules/tracer/elasticsearch_transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"context"
"encoding/json"
"fmt"
"net/http"
"net/url"
"time"

Expand Down Expand Up @@ -34,7 +35,7 @@ func NewElasticSearchTransport(connectionString string, elasticsearchIndex strin
},
Username: username,
Password: password,
Transport: &FastHttpTransport{},
Transport: &http.Transport{},
}

es, err := elasticsearch.NewClient(cfg)
Expand Down
74 changes: 0 additions & 74 deletions node/modules/tracer/fasthttp_transport.go

This file was deleted.

0 comments on commit 42d2f4d

Please sign in to comment.