Skip to content

Commit

Permalink
Remove unused buffer pool
Browse files Browse the repository at this point in the history
  • Loading branch information
gabsn committed Sep 12, 2017
1 parent 977b2cd commit 6eb6095
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tracer/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"log"
"net/http"
"strconv"
"sync"
"time"

"github.com/DataDog/dd-trace-go/tracer/ext"
Expand Down Expand Up @@ -58,7 +57,6 @@ type httpTransport struct {
serviceURL string // the delivery URL for services
legacyServiceURL string // the legacy delivery URL for services
pool *encoderPool // encoding allocates lot of buffers (which might then be resized) so we use a pool so they can be re-used
bufferPool *bufferPool // we use this buffer pool to avoid race conditions when sending the encoder through the network
client *http.Client // the HTTP client used in the POST
headers map[string]string // the Transport headers
compatibilityMode bool // the Agent targets a legacy API for compatibility reasons
Expand All @@ -82,7 +80,6 @@ func newHTTPTransport(hostname, port string) *httpTransport {
serviceURL: fmt.Sprintf("http://%s:%s/v0.3/services", hostname, port),
legacyServiceURL: fmt.Sprintf("http://%s:%s/v0.2/services", hostname, port),
pool: pool,
bufferPool: newBufferPool(),
client: &http.Client{
Timeout: defaultHTTPTimeout,
},
Expand Down

0 comments on commit 6eb6095

Please sign in to comment.