replaced storage.BlockExists() with storage.BlockSize() which returns additional info

This commit is contained in:
Jarek Kowalski committed 2016-08-25 21:39:17 -07:00
1 parent 613955de4e
commit bf40d91585
11 files changed
+60 -53

No files matched your search

+3 -3
View File
@@ -14,11 +14,11 @@ type loggingStorage struct {
prefix string
}
func (s *loggingStorage) BlockExists(id string) (bool, error) {
func (s *loggingStorage) BlockSize(id string) (int64, error) {
t0 := time.Now()
result, err := s.base.BlockExists(id)
result, err := s.base.BlockSize(id)
dt := time.Since(t0)
s.printf(s.prefix+"BlockExists(%#v)=%#v,%#v took %v", id, result, err, dt)
s.printf(s.prefix+"BlockSize(%#v)=%#v,%#v took %v", id, result, err, dt)
return result, err
}