aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/storage/dbstore.go
diff options
context:
space:
mode:
authorZahoor Mohamed <zahoor@zahoor.in>2017-09-22 04:22:51 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-09-22 04:22:51 +0800
commitd558a595adf4e89bab5b28ffde1448dc1e5768b0 (patch)
tree1316cca927bfd4dfc4a8673ae0b9c2f75724f07e /swarm/storage/dbstore.go
parent3c8656347f67dbc8e57c663ec5c26d24c4151678 (diff)
downloaddexon-d558a595adf4e89bab5b28ffde1448dc1e5768b0.tar
dexon-d558a595adf4e89bab5b28ffde1448dc1e5768b0.tar.gz
dexon-d558a595adf4e89bab5b28ffde1448dc1e5768b0.tar.bz2
dexon-d558a595adf4e89bab5b28ffde1448dc1e5768b0.tar.lz
dexon-d558a595adf4e89bab5b28ffde1448dc1e5768b0.tar.xz
dexon-d558a595adf4e89bab5b28ffde1448dc1e5768b0.tar.zst
dexon-d558a595adf4e89bab5b28ffde1448dc1e5768b0.zip
swarm/storage: pyramid chunker re-write (#14382)
Diffstat (limited to 'swarm/storage/dbstore.go')
-rw-r--r--swarm/storage/dbstore.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/swarm/storage/dbstore.go b/swarm/storage/dbstore.go
index cbeddb8cb..46a5c16cc 100644
--- a/swarm/storage/dbstore.go
+++ b/swarm/storage/dbstore.go
@@ -72,12 +72,12 @@ type DbStore struct {
gcPos, gcStartPos []byte
gcArray []*gcItem
- hashfunc Hasher
+ hashfunc SwarmHasher
lock sync.Mutex
}
-func NewDbStore(path string, hash Hasher, capacity uint64, radius int) (s *DbStore, err error) {
+func NewDbStore(path string, hash SwarmHasher, capacity uint64, radius int) (s *DbStore, err error) {
s = new(DbStore)
s.hashfunc = hash