diff --git a/pkg/ioutils/reader.go b/pkg/ioutil/reader.go similarity index 98% rename from pkg/ioutils/reader.go rename to pkg/ioutil/reader.go index e29d9616a..13748590b 100644 --- a/pkg/ioutils/reader.go +++ b/pkg/ioutil/reader.go @@ -14,7 +14,7 @@ limitations under the License. */ -package ioutils +package ioutil import "io" diff --git a/pkg/ioutils/reader_test.go b/pkg/ioutil/reader_test.go similarity index 98% rename from pkg/ioutils/reader_test.go rename to pkg/ioutil/reader_test.go index d3d5a13e1..42f064801 100644 --- a/pkg/ioutils/reader_test.go +++ b/pkg/ioutil/reader_test.go @@ -14,7 +14,7 @@ limitations under the License. */ -package ioutils +package ioutil import ( "bytes" diff --git a/rafthttp/http.go b/rafthttp/http.go index 60afe83a8..b10967054 100644 --- a/rafthttp/http.go +++ b/rafthttp/http.go @@ -24,7 +24,7 @@ import ( "strconv" "strings" - "github.com/coreos/etcd/pkg/ioutils" + pioutil "github.com/coreos/etcd/pkg/ioutil" "github.com/coreos/etcd/pkg/types" "github.com/coreos/etcd/raft/raftpb" @@ -81,7 +81,7 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { // Limit the data size that could be read from the request body, which ensures that read from // connection will not time out accidentally due to possible block in underlying implementation. - limitedr := ioutils.NewLimitedBufferReader(r.Body, ConnReadLimitByte) + limitedr := pioutil.NewLimitedBufferReader(r.Body, ConnReadLimitByte) b, err := ioutil.ReadAll(limitedr) if err != nil { log.Println("rafthttp: error reading raft message:", err) diff --git a/test b/test index 0e2ded2a0..7c16aa2aa 100755 --- a/test +++ b/test @@ -15,7 +15,7 @@ COVER=${COVER:-"-cover"} source ./build # Hack: gofmt ./ will recursively check the .git directory. So use *.go for gofmt. -TESTABLE_AND_FORMATTABLE="client discovery error etcdctl/command etcdmain etcdserver etcdserver/etcdhttp etcdserver/etcdhttp/httptypes integration migrate pkg/fileutil pkg/flags pkg/idutil pkg/ioutils pkg/netutil pkg/pbutil pkg/types pkg/transport pkg/wait proxy raft rafthttp snap store wal" +TESTABLE_AND_FORMATTABLE="client discovery error etcdctl/command etcdmain etcdserver etcdserver/etcdhttp etcdserver/etcdhttp/httptypes integration migrate pkg/fileutil pkg/flags pkg/idutil pkg/ioutil pkg/netutil pkg/pbutil pkg/types pkg/transport pkg/wait proxy raft rafthttp snap store wal" FORMATTABLE="$TESTABLE_AND_FORMATTABLE *.go etcdctl/" # user has not provided PKG override