mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
*: clean up unused vars, functions
With help from https://github.com/dominikh/go-unused. IsNetTimeoutError seems useful, so moved to pkg/netutil.
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
package v2http
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"math"
|
||||
"net/http"
|
||||
"strings"
|
||||
@@ -35,9 +34,8 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
plog = capnslog.NewPackageLogger("github.com/coreos/etcd/etcdserver/api", "v2http")
|
||||
mlog = logutil.NewMergeLogger(plog)
|
||||
errClosed = errors.New("v2http: client closed connection")
|
||||
plog = capnslog.NewPackageLogger("github.com/coreos/etcd/etcdserver/api", "v2http")
|
||||
mlog = logutil.NewMergeLogger(plog)
|
||||
)
|
||||
|
||||
// writeError logs and writes the given Error to the ResponseWriter
|
||||
|
||||
Reference in New Issue
Block a user