Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mslipper committed Aug 3, 2022
1 parent c403dab commit 1f82a86
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions proxyd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/sethvargo/go-limiter"
"github.com/sethvargo/go-limiter/memorystore"
"github.com/sethvargo/go-limiter/noopstore"
"io"
"io/ioutil"
"math"
Expand All @@ -17,6 +14,10 @@ import (
"sync"
"time"

"github.com/sethvargo/go-limiter"
"github.com/sethvargo/go-limiter/memorystore"
"github.com/sethvargo/go-limiter/noopstore"

"github.com/ethereum/go-ethereum/log"
"github.com/gorilla/mux"
"github.com/gorilla/websocket"
Expand Down Expand Up @@ -456,7 +457,7 @@ func (s *Server) populateContext(w http.ResponseWriter, r *http.Request) context
xff = ipPort[0]
}
}
ctx := context.WithValue(r.Context(), ContextKeyXForwardedFor, xff)
ctx := context.WithValue(r.Context(), ContextKeyXForwardedFor, xff) // nolint:staticcheck

if s.authenticatedPaths == nil {
// handle the edge case where auth is disabled
Expand Down

0 comments on commit 1f82a86

Please sign in to comment.