Skip to content

Commit fa61a53

Browse files
committed
Lint: update fix structcheck caddyserver#2541
1 parent 2cde345 commit fa61a53

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

caddyhttp/fastcgi/fcgiclient.go

+7-9
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,13 @@ func (rec *record) read(r io.Reader) (buf []byte, err error) {
175175
// FCGIClient implements a FastCGI client, which is a standard for
176176
// interfacing external applications with Web servers.
177177
type FCGIClient struct {
178-
mutex sync.Mutex
179-
rwc io.ReadWriteCloser
180-
h header
181-
buf bytes.Buffer
182-
stderr bytes.Buffer
183-
keepAlive bool
184-
reqID uint16
185-
// readTimeout time.Duration
186-
// sendTimeout time.Duration
178+
mutex sync.Mutex
179+
rwc io.ReadWriteCloser
180+
h header
181+
buf bytes.Buffer
182+
stderr bytes.Buffer
183+
keepAlive bool
184+
reqID uint16
187185
}
188186

189187
// DialWithDialerContext connects to the fcgi responder at the specified network address, using custom net.Dialer

caddyhttp/proxy/proxy_test.go

-1
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,6 @@ type fakeWsUpstream struct {
15061506
without string
15071507
insecure bool
15081508
timeout time.Duration
1509-
// fallbackDelay time.Duration
15101509
}
15111510

15121511
func (u *fakeWsUpstream) From() string {

0 commit comments

Comments
 (0)