From e10c7c817c4045565104482fcdf92b52c71c4eb6 Mon Sep 17 00:00:00 2001 From: Adam Fisk Date: Wed, 20 Nov 2024 11:08:26 -0700 Subject: [PATCH] Improved method name --- fronted.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fronted.go b/fronted.go index 300127a..8e01e0a 100644 --- a/fronted.go +++ b/fronted.go @@ -258,7 +258,7 @@ func (f *fronted) RoundTripHijack(req *http.Request) (*http.Response, net.Conn, return nil, nil, err } - resp, conn, err := f.requestWithConn(req, conn, m, originHost, getBody, masqueradeGood) + resp, conn, err := f.validateMasqueradeWithConn(req, conn, m, originHost, getBody, masqueradeGood) if err != nil { log.Debugf("Could not complete request: %v", err) continue @@ -270,8 +270,8 @@ func (f *fronted) RoundTripHijack(req *http.Request) (*http.Response, net.Conn, return nil, nil, op.FailIf(errors.New("could not complete request even with retries")) } -func (f *fronted) requestWithConn(req *http.Request, conn net.Conn, m MasqueradeInterface, originHost string, getBody func() io.ReadCloser, masqueradeGood func(bool) bool) (*http.Response, net.Conn, error) { - op := ops.Begin("request_with_conn") +func (f *fronted) validateMasqueradeWithConn(req *http.Request, conn net.Conn, m MasqueradeInterface, originHost string, getBody func() io.ReadCloser, masqueradeGood func(bool) bool) (*http.Response, net.Conn, error) { + op := ops.Begin("validate_masquerade_with_conn") defer op.End() provider := f.providerFor(m) if provider == nil {