Skip to content

Commit

Permalink
remove defunct instrumented response writer
Browse files Browse the repository at this point in the history
  • Loading branch information
myleshorton committed Dec 12, 2023
1 parent ba05e3e commit dfc1fd2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internalsdk/replica.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
"github.com/getlantern/flashlight/v7/common"
"github.com/getlantern/flashlight/v7/config"
"github.com/getlantern/flashlight/v7/geolookup"
"github.com/getlantern/flashlight/v7/ops"
"github.com/getlantern/flashlight/v7/proxied"
replicaConfig "github.com/getlantern/replica/config"
replicaServer "github.com/getlantern/replica/server"
Expand Down Expand Up @@ -150,10 +149,6 @@ func (s *ReplicaServer) newHandler() (*replicaServer.HttpHandler, error) {
input.GlobalConfig = optsFunc
input.HttpClient.Transport = proxied.ParallelForIdempotent()
input.ProcessCORSHeaders = common.ProcessCORS
input.InstrumentResponseWriter = func(w http.ResponseWriter,
label string) replicaServer.InstrumentedResponseWriter {
return ops.InitInstrumentedResponseWriter(w, label)
}
input.HttpClient = &http.Client{
Transport: proxied.AsRoundTripper(
func(req *http.Request) (*http.Response, error) {
Expand Down

0 comments on commit dfc1fd2

Please sign in to comment.