aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-11 09:35:15 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-11 15:35:15 +0800
commit934f04e33096b7884d96135d44f2879a82e54a94 (patch)
tree98cd897d8d434aee3c5a95046f9f02ebfcb3721d /client.go
parentRename unexported funcs, vars to match common Go (#1488) (diff)
downloadfasthttp-934f04e33096b7884d96135d44f2879a82e54a94.tar.gz
fasthttp-934f04e33096b7884d96135d44f2879a82e54a94.tar.bz2
fasthttp-934f04e33096b7884d96135d44f2879a82e54a94.zip
Refactor golangci-lint config and remove redundant nolints (#1486)
* Refactor golangci-lint config - Use golangci-lint-action for GitHub workflow. - Add additional golangci-lint run options. - Remove unused nolint directives. * Revert exclude-use-default option
Diffstat (limited to 'client.go')
-rw-r--r--client.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/client.go b/client.go
index d765c14..7f2cc89 100644
--- a/client.go
+++ b/client.go
@@ -179,7 +179,7 @@ var defaultClient Client
//
// The fields of a Client should not be changed while it is in use.
type Client struct {
- noCopy noCopy //nolint:unused,structcheck
+ noCopy noCopy
// Client name. Used in User-Agent request header.
//
@@ -642,7 +642,7 @@ const (
//
// It is safe calling HostClient methods from concurrently running goroutines.
type HostClient struct {
- noCopy noCopy //nolint:unused,structcheck
+ noCopy noCopy
// Comma-separated list of upstream HTTP server host addresses,
// which are passed to Dial in a round-robin manner.
@@ -2165,7 +2165,7 @@ func (q *wantConnQueue) clearFront() (cleaned bool) {
// It is safe calling PipelineClient methods from concurrently running
// goroutines.
type PipelineClient struct {
- noCopy noCopy //nolint:unused,structcheck
+ noCopy noCopy
// Address of the host to connect to.
Addr string
@@ -2279,7 +2279,7 @@ type PipelineClient struct {
}
type pipelineConnClient struct {
- noCopy noCopy //nolint:unused,structcheck
+ noCopy noCopy
Addr string
Name string