mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 02:57:59 +08:00
go vet
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
package filer2
|
package filer2
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"log"
|
|
||||||
"math"
|
"math"
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
@@ -82,13 +81,12 @@ func ReadFromChunks(chunks []*filer_pb.FileChunk, offset int64, size int) (views
|
|||||||
}
|
}
|
||||||
|
|
||||||
func logPrintf(name string, visibles []*visibleInterval) {
|
func logPrintf(name string, visibles []*visibleInterval) {
|
||||||
|
/*
|
||||||
return
|
|
||||||
|
|
||||||
log.Printf("%s len %d", name, len(visibles))
|
log.Printf("%s len %d", name, len(visibles))
|
||||||
for _, v := range visibles {
|
for _, v := range visibles {
|
||||||
log.Printf("%s: => %+v", name, v)
|
log.Printf("%s: => %+v", name, v)
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
func nonOverlappingVisibleIntervals(chunks []*filer_pb.FileChunk) (visibles []*visibleInterval) {
|
func nonOverlappingVisibleIntervals(chunks []*filer_pb.FileChunk) (visibles []*visibleInterval) {
|
||||||
|
@@ -159,5 +159,4 @@ func distributedOperation(masterNode string, store *storage.Store, volumeId stor
|
|||||||
glog.V(0).Infoln()
|
glog.V(0).Infoln()
|
||||||
return fmt.Errorf("Failed to lookup for %d: %v", volumeId, lookupErr)
|
return fmt.Errorf("Failed to lookup for %d: %v", volumeId, lookupErr)
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
@@ -141,7 +141,6 @@ func GetBufferStream(url string, values url.Values, allocatedBytes []byte, eachB
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetUrlStream(url string, values url.Values, readFn func(io.Reader) error) error {
|
func GetUrlStream(url string, values url.Values, readFn func(io.Reader) error) error {
|
||||||
|
Reference in New Issue
Block a user