aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/mru/cacheentry.go
diff options
context:
space:
mode:
authorJavier Peletier <jm@epiclabs.io>2018-09-29 07:00:28 +0800
committerJavier Peletier <jm@epiclabs.io>2018-10-03 15:12:06 +0800
commitf1e86ad9cf0470051b7106ee83794d27276b528d (patch)
tree4a11bd2816200bac0a0e24a3b3c5c79db84e2bf4 /swarm/storage/mru/cacheentry.go
parentbd1f7ebda27d57002b6a04a95812420a40117b3a (diff)
downloaddexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar.gz
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar.bz2
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar.lz
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar.xz
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.tar.zst
dexon-f1e86ad9cf0470051b7106ee83794d27276b528d.zip
swarm/storage/mru: Renamed all identifiers to Feeds
Diffstat (limited to 'swarm/storage/mru/cacheentry.go')
-rw-r--r--swarm/storage/mru/cacheentry.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/swarm/storage/mru/cacheentry.go b/swarm/storage/mru/cacheentry.go
index 280331f77..024ed61c3 100644
--- a/swarm/storage/mru/cacheentry.go
+++ b/swarm/storage/mru/cacheentry.go
@@ -26,23 +26,23 @@ import (
const (
hasherCount = 8
- resourceHashAlgorithm = storage.SHA3Hash
+ feedsHashAlgorithm = storage.SHA3Hash
defaultRetrieveTimeout = 100 * time.Millisecond
)
// cacheEntry caches resource data and the metadata of its root chunk.
type cacheEntry struct {
- ResourceUpdate
+ Update
*bytes.Reader
lastKey storage.Address
}
// implements storage.LazySectionReader
func (r *cacheEntry) Size(ctx context.Context, _ chan bool) (int64, error) {
- return int64(len(r.ResourceUpdate.data)), nil
+ return int64(len(r.Update.data)), nil
}
//returns the resource's topic
func (r *cacheEntry) Topic() Topic {
- return r.View.Topic
+ return r.Feed.Topic
}