aboutsummaryrefslogtreecommitdiff
path: root/chunk.go
diff options
context:
space:
mode:
Diffstat (limited to 'chunk.go')
-rw-r--r--chunk.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/chunk.go b/chunk.go
index a1cf3cd..14b8cfd 100644
--- a/chunk.go
+++ b/chunk.go
@@ -4,8 +4,6 @@ import (
"bytes"
"fmt"
"io"
- "log"
- "os"
"path"
)
@@ -87,12 +85,7 @@ func (c *StoredChunk) Reader() io.ReadSeeker {
}
func (c *StoredChunk) Len() int {
- path := c.Id.Path(c.repo.path)
- info, err := os.Stat(path)
- if err != nil {
- log.Println("Chunk: could not stat file:", path)
- }
- return int(info.Size())
+ return c.repo.chunkSize
}
func NewTempChunk(value []byte) *TempChunk {