From 8b0718ac92ff7f54db5e98ff175c7ac302a00df2 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 27 May 2018 11:56:49 -0700 Subject: [PATCH] go vet --- weed/filer2/filechunks.go | 6 ++---- weed/topology/store_replicate.go | 1 - weed/util/http_util.go | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/weed/filer2/filechunks.go b/weed/filer2/filechunks.go index 86b1a85b5..bd4a57f0f 100644 --- a/weed/filer2/filechunks.go +++ b/weed/filer2/filechunks.go @@ -1,7 +1,6 @@ package filer2 import ( - "log" "math" "sort" @@ -82,13 +81,12 @@ func ReadFromChunks(chunks []*filer_pb.FileChunk, offset int64, size int) (views } func logPrintf(name string, visibles []*visibleInterval) { - - return - + /* log.Printf("%s len %d", name, len(visibles)) for _, v := range visibles { log.Printf("%s: => %+v", name, v) } + */ } func nonOverlappingVisibleIntervals(chunks []*filer_pb.FileChunk) (visibles []*visibleInterval) { diff --git a/weed/topology/store_replicate.go b/weed/topology/store_replicate.go index d7fb501c0..1163c68d2 100644 --- a/weed/topology/store_replicate.go +++ b/weed/topology/store_replicate.go @@ -159,5 +159,4 @@ func distributedOperation(masterNode string, store *storage.Store, volumeId stor glog.V(0).Infoln() return fmt.Errorf("Failed to lookup for %d: %v", volumeId, lookupErr) } - return nil } diff --git a/weed/util/http_util.go b/weed/util/http_util.go index 6494041e3..579abaac0 100644 --- a/weed/util/http_util.go +++ b/weed/util/http_util.go @@ -141,7 +141,6 @@ func GetBufferStream(url string, values url.Values, allocatedBytes []byte, eachB return err } } - return nil } func GetUrlStream(url string, values url.Values, readFn func(io.Reader) error) error {