diff --git a/weed/filer/filechunks.go b/weed/filer/filechunks.go index 48b344bf8..5a600a188 100644 --- a/weed/filer/filechunks.go +++ b/weed/filer/filechunks.go @@ -3,11 +3,9 @@ package filer import ( "bytes" "fmt" - "math" - "sync" - "github.com/chrislusf/seaweedfs/weed/wdclient" "golang.org/x/exp/slices" + "math" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" "github.com/chrislusf/seaweedfs/weed/util" @@ -189,12 +187,6 @@ func logPrintf(name string, visibles []VisibleInterval) { */ } -var bufPool = sync.Pool{ - New: func() interface{} { - return new(VisibleInterval) - }, -} - func MergeIntoVisibles(visibles []VisibleInterval, chunk *filer_pb.FileChunk) (newVisibles []VisibleInterval) { newV := newVisibleInterval(chunk.Offset, chunk.Offset+int64(chunk.Size), chunk.GetFileIdString(), chunk.Mtime, 0, chunk.Size, chunk.CipherKey, chunk.IsCompressed)